PHP code example of mradder / filament-logger

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

    

mradder / filament-logger example snippets


use Filament\Panel;

public function panel(Panel $panel): Panel
{
    return $panel
        ->resources([
            config('filament-logger.activity_resource'),
        ]);
}

'access' => [
    // ...
    'guards' => ['web'],
],

'access' => [
    // Log only panel auth events from the web guard.
    'guards' => ['web'],
],
bash
php artisan filament-logger:install
php artisan migrate