PHP code example of chimerarocks / user

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

    

chimerarocks / user example snippets


'providers' => [
    ...
    ChimeraRocks\User\Providers\UserServiceProvider::class,
    Collective\Html\HtmlServiceProvider::class,
],

'aliases' => [
    // ...
      'Form' => Collective\Html\FormFacade::class,
      'Html' => Collective\Html\HtmlFacade::class,
    // ...
 ],

'providers' => [
   'users' => [
       'driver' => 'eloquent',
       'model' => \ChimeraRocks\User\Models\User::class,
   ],
],

$routeMiddleware = [
    ...
    'authorization' => \ChimeraRocks\User\Middlewares\Authorization::class,
    ...
]

App::make('chimerarocks_user_route')->auth();

php artisan vendor:publish

php artisan migrate

php artisan passport:install