PHP code example of genealabs / laravel-tenancy-scout
1. Go to this page and download the library: Download genealabs/laravel-tenancy-scout library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
genealabs / laravel-tenancy-scout example snippets
namespace App;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Foundation\Auth\User as Authenticatable;
use GeneaLabs\LaravelTenancyScout\Traits\SearchableTenantConnection;
class User extends Authenticatable
{
use SearchableTenantConnection;
}