PHP code example of fredlabs / business-units
1. Go to this page and download the library: Download fredlabs/business-units 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/ */
fredlabs / business-units example snippets
return [
'fillable' => [
'name',
'description',
'other_field',
],
];
use FredLabs\BusinessUnits\Traits\HasBusinessUnit;
class User extends Authenticatable
{
use HasBusinessUnit;
}
bash
php artisan vendor:publish --provider="FredLabs\BusinessUnits\Providers\BusinessUnitServiceProvider"
bash
php artisan migrate