1. Go to this page and download the library: Download getodden/ses-tenants 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/ */
getodden / ses-tenants example snippets
use Odden\SesTenants\Contracts\SesOwner;
class Team extends Model implements SesOwner
{
public function sesTenantName(): string { return "team-{$this->id}"; }
public function sesIsRisky(): bool { return $this->onTrial(); }
}