PHP code example of dkpankaj1 / adminkit

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

    

dkpankaj1 / adminkit example snippets


Dkpankaj1\AdminKit\AdminKitServiceProvider::class

->withMiddleware(function (Middleware $middleware) {
    $middleware->alias(['admin' => \App\Http\Middleware\AdminAccess::class]);
})

->withRouting(
    web: [__DIR__ . '/../routes/web.php', __DIR__ . '/../routes/admin.php'],
    commands: __DIR__ . '/../routes/console.php'
)
bash
php artisan install:adminkit
bash
php artisan install:adminkit -v
bash
php artisan migrate
bash
    php artisan config:clear
    php artisan cache:clear