PHP code example of majebry / laravel6-userable

1. Go to this page and download the library: Download majebry/laravel6-userable 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/ */

    

majebry / laravel6-userable example snippets


class User extends Authenticatable
{
    use \Majebry\LaravelUserable\Traits\Userable;
    //...
}

protected $routeMiddleware = [
    // ...
    'userable-auth' => \Majebry\LaravelUserable\Http\Middleware\UserTypeMiddleware::class,
];
bash
php artisan vendor:publish --provider="Majebry\LaravelUserable\UserableServiceProvider" --tag="migrations"
bash
php artsian userable:make Customer