PHP code example of creative-syntax / laravel-logviewer

1. Go to this page and download the library: Download creative-syntax/laravel-logviewer 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/ */

    

creative-syntax / laravel-logviewer example snippets


CreativeSyntax\LogViewer\CreativeSyntaxLogViewer::class,

php artisan vendor:publish --provider="CreativeSyntax\LogViewer\CreativeSyntaxLogViewer" --force

Ex: http://your-website/onex/log-viewer

Ex: http://localhost:8000/onex/log-viewer

/** If you want to disable the route or this feature, then make it false */
'is_route_enabled' => true,

/** If you want to change the route prefix */
'route_prefix' => 'onex',

/** If you want to change the route name or path */
'route_name' => 'log-viewer',

/** If you want to change the page heading */
'page_heading' => 'Logs Viewer',

/** If you want to enable the securiry for access the system logs information
 *  Then make it ('is_enabled') true and also you can set login-id and password through .env
 */
'authentication' => [
    'is_enabled' => env('LOGVIEWER_AUTH_ENABLED', false),
    'login_id' => env('LOGVIEWER_LOGIN_ID', 'onexadmin'),
    'password' => env('LOGVIEWER_LOGIN_PASSWORD', 'onexpassword')
]