1. Go to this page and download the library: Download ibrahim-eng12/log-owl 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/ */
ibrahim-eng12 / log-owl example snippets
return [
// URL prefix for log viewer routes
'route_prefix' => 'logs',
// Middleware applied to all routes
'middleware' => ['web', 'auth'],
// Path to log files
'log_path' => storage_path('logs'),
// Logs per page
'per_page' => 25,
// Restrict to specific users (empty = all authenticated)
'allowed_users' => [],
// Allow clearing log files
'allow_clear' => true,
// Allow downloading log files
'allow_download' => true,
// Default locale (null = use app locale)
'locale' => null,
// Available locales for the language switcher
'available_locales' => [
'en' => 'English',
'ar' => 'Arabic',
],
];