PHP code example of imamhsn195 / laravel-system-logs

1. Go to this page and download the library: Download imamhsn195/laravel-system-logs 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/ */

    

imamhsn195 / laravel-system-logs example snippets


'ui' => [
    'layout' => 'layouts.app', // Your layout name
    'title' => 'System Logs',
],

'permissions' => [
    'view' => 'system-log.view',
    'delete' => 'system-log.delete',
],

'scanning' => [
    'recursive' => true,
    'max_depth' => 10,
    'exclude_directories' => ['.git', 'node_modules', '.cache'],
],

'log_directory' => storage_path('logs'),

'route' => [
    'prefix' => 'admin/system-logs',
    'middleware' => ['web', 'auth'],
    'name_prefix' => 'system-logs.',
],

'ui' => [
    'layout' => 'layouts.app',
    'layout_type' => 'extend',
    'section_name' => 'content',
    'title' => 'System Logs',
],

'filters' => [
    'default_per_page' => 50,
    'min_per_page' => 10,
    'max_per_page' => 300,
    'default_max_files' => 3,
    'min_max_files' => 1,
    'max_max_files' => 20,
],
bash
php artisan vendor:publish --tag=system-logs-config
bash
php artisan vendor:publish --tag=system-logs-assets
bash
php artisan vendor:publish --tag=system-logs-views
bash
php artisan vendor:publish --tag=system-logs-lang