79494387

Date: 2025-03-08 12:42:23
Score: 0.5
Natty:
Report link

What i did was to first off all publish the package:

php artisan log-viewer:publish

Then change this:

'pattern'       => [
        'prefix'    => Filesystem::PATTERN_PREFIX,    // 'laravel-'
        'date'      => Filesystem::PATTERN_DATE,      // '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]'
        'extension' => Filesystem::PATTERN_EXTENSION, // '.log'
    ],

to:

    'pattern'       => [
        'prefix'    => 'laravel-',
        'date'      => '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]',
        'extension' => '.log',
    ],

Worked well for me. Also make sure to change your LOG_CHANNEL in your .env from stack to daily

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What i
  • Low reputation (1):
Posted by: Dan Ogbo