PHP code example of thotam / thotam-permission
1. Go to this page and download the library: Download thotam/thotam-permission 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/ */
thotam / thotam-permission example snippets
php artisan vendor:publish --provider="Thotam\ThotamPermission\ThotamPermissionServiceProvider"
php artisan optimize:clear
# or
php artisan config:clear
implements Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
add Traits Illuminate\Foundation\Auth\Access\Authorizable;
add Traits Spatie\Permission\Traits\HasRoles;
add protected $guard_name = 'web';
php artisan migrate