1. Go to this page and download the library: Download eduardoarandah/usermanager 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/ */
eduardoarandah / usermanager example snippets
namespace App;
class BackpackUser extends User
{
use \Backpack\CRUD\app\Models\Traits\CrudTrait; // <--- Add this line
// ...
namespace App\Models;
use App\User;
use Backpack\CRUD\app\Models\Traits\InheritsRelationsFromParentModel;
use Backpack\CRUD\app\Notifications\ResetPasswordNotification as ResetPasswordNotification;
use Illuminate\Notifications\Notifiable;
use Backpack\CRUD\app\Models\Traits\CrudTrait; <--- Add this line
class BackpackUser extends User
{
use InheritsRelationsFromParentModel;
use Notifiable;
use CrudTrait; <--- Add this line
...
namespace App;
use Backpack\CRUD\CrudTrait; // <------------------------------- this one
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use CrudTrait; // <----- this
/**
* Your User Model content
*/