PHP code example of shawnsandy / dash-auth

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

    

shawnsandy / dash-auth example snippets

 bash
php artisan vendor:publish --tag=dashauth-config
 php
   'roles' => [
        'superadmin' => "Super Admin",
        'admin' => "Admin",
        'staff' => "Staff",
        'editor' => "Editor",
        'member' => "Member",
    ],

    'abilities' => [
        'assign_roles' => 'Assign Roles',
        'manage_users' => 'Manage Users',
        'manage_posts' => 'Manage Posts',
        'manage_admin' => 'Manage Site',
        'manage_systems' => 'Manage Systems',
    ],
 php
Dashauth::routes();
 php
 @component('dashauth::components.privileges')
 
 php
"providers" => [
    ShawnSandy\DashAuth\DashAuthServicesProvider::class,
]
 php
aliases => [
"Dashauth" => ShawnSandy\DashAuth\DashAuthFacade::class,
]