PHP code example of backstage / laravel-users

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

    

backstage / laravel-users example snippets


'providers' => [
    'users' => [
        'driver' => 'eloquent',
        'model' => \Backstage\Laravel\Users\Models\User::class,
    ],
],
bash
php artisan vendor:publish --tag="laravel-users-config"
php artisan vendor:publish --tag="laravel-users-migrations"
bash
php artisan migrate
bash
composer vendor:publish --provider="Laravel\\Sanctum\\SanctumServiceProvider"
php artisan migrate
bash
composer vendor:publish --provider="Spatie\\Permission\\PermissionServiceProvider"
php artisan migrate
bash
composer dump-autoload