PHP code example of jeffersongoncalves / laravel-admin

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

    

jeffersongoncalves / laravel-admin example snippets


namespace App\Models;

use JeffersonGoncalves\Admin\Models\Admin as BaseAdmin;

class Admin extends BaseAdmin
{
    // add traits, relations or overrides here
}

'providers' => [
    // ...
    'admins' => [
        'driver' => 'eloquent',
        'model' => App\Models\Admin::class,
    ],
],

Auth::guard('admin')->attempt(['email' => $email, 'password' => $password, 'status' => true]);
bash
php artisan vendor:publish --tag="laravel-admin-migrations"
php artisan migrate