Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class "Route" not found #465

Open
twhiting9275 opened this issue Jul 25, 2024 · 0 comments
Open

Class "Route" not found #465

twhiting9275 opened this issue Jul 25, 2024 · 0 comments

Comments

@twhiting9275
Copy link

twhiting9275 commented Jul 25, 2024

  • LogViewer Version: 11.0.1

  • Laravel Version: 11.16.0

  • PHP Version: 8.2.21

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant