PHP code example of lukeraymonddowning / nightguard

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

    

lukeraymonddowning / nightguard example snippets


public function boot() 
{
    Nightguard::create(App\Models\Administrator::class);
}

Route::get('example-url', fn() => 'Super secret!')->middleware('auth:administrator');
bash
php artisan nightguard:model Administrator