1. Go to this page and download the library: Download robot-council/core 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/ */
use RobotCouncil\Support\Contracts\SuppliesUserAttributes;
use RobotCouncil\Support\NewDeveloper;
final class TenantUserAttributes implements SuppliesUserAttributes
{
public function for(NewDeveloper $developer): array
{
return [
'name' => $developer->login,
'email' => $developer->email,
'tenant_id' => Tenant::current()->id,
];
}
}
// In your own service provider
$this->app->bind(SuppliesUserAttributes::class, TenantUserAttributes::class);
$this->app->make(RobotCouncil\Support\SessionReleases::class)->register(function (): void {
// release whatever a session that has gone was holding
});
bash
php artisan robot-council:install # writes two migrations; commit what it writes
php artisan migrate