1. Go to this page and download the library: Download web-id/ail 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/ */
web-id / ail example snippets
return [
/*
|--------------------------------------------------------------------------
| Route configuration
|--------------------------------------------------------------------------
|
| These values will change the route configuration for the application routes.
| You can define the prefix, the name and set your own middleware on it.
| Web middleware is value is a list of guards that you want to display and impersonate. You
| need to set the name on key and the service builder on value. The service
| builder is ents
| like production or preprod with sensitive data.
*/
'allowedEnv' => [
'local',
'preproduction',
],
/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
|
| This value is the pagination number for view.
|
*/
'perPage' => 15,
];
class User extends Authenticatable
{
use Impersonate;
}
bash
php artisan ail:install
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.