1. Go to this page and download the library: Download touhedul/users 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/ */
Set all roles on RolesPermissionsTableSeeder and users on UsersTableSeeder
$this->call(RolesPermissionsTableSeeder::class);
$this->call(UsersTableSeeder::class);
Descomment
use Laravel\Passport\HasApiTokens;
use HasApiTokens;
in \Models\Users.php