1. Go to this page and download the library: Download artisan/laravel-settings 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 Humans\Settings\Laravel\HasSettings;
class User extends Model
{
use HasSettings;
}
class Workspace extends Model
{
use HasSettings;
}
use Humans\Settings\Laravel\HasSettings;
class User extends Model
{
use HasSettings;
protected function getSettingsClass()
{
return \App\Models\Settings\AccountSettings::class;
}
}
use Humans\Settings\Laravel\HasSettings;
class Workspace extends Model
{
use HasSettings;
public function getSettingsClass()
{
return \App\Models\Settings\AccountSettings::class;
}
}