PHP code example of lupka / nova-laravel-api-logger

1. Go to this page and download the library: Download lupka/nova-laravel-api-logger 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/ */

    

lupka / nova-laravel-api-logger example snippets


use Lupka\NovaLaravelApiLogger\NovaLaravelApiLogger;

...

public function tools()
{
    return [
        ...
        new NovaLaravelApiLogger,
    ];
}

(new NovaLaravelApiLogger)->canSee(function ($request) {
    return in_array($request->user()->email, ['[email protected]']);
}),