ARCANEDEV / LogViewer

:page_with_curl: Provides a log viewer for Laravel
MIT License
2.37k stars 335 forks source link

Class "Route" not found #465

Open twhiting9275 opened 4 months ago

twhiting9275 commented 4 months ago

Description:

Out of box installation, Pretty basic configs. When showing /admin/log-viewer though, the error message in subject is shown

Configs have been changed and work properly. It's routing TO log-viewer ` 'route' => [ 'enabled' => true,

  'attributes' => [
        'prefix' => 'admin/log-viewer',
        'middleware' => ['web', 'auth', 'can:view_logs'],
    ],

    'show' => 'log-viewer::logs.show',
],`

The full error: Class "Route" not found

Lines producing this error: resources / views / vendor / log-viewer / bootstrap-5 / _master.blade.php: 229 <li class="nav-item {{ Route::is('log-viewer::dashboard') ? 'active' : '' }}"> just below that will produce it too

<li class="nav-item {{ Route::is('log-viewer::logs.list') ? 'active' : '' }}">

The route is protected

Route::group(['middleware' => ['role:developer']], function () {

        Route::get('/admin/log-viewer',[LogViewerController::class,'index']);

    }); 

It's not an auth issue, if I'm not logged in, the routing works as it's supposed to, giving me a 403.