pretty-routes icon indicating copy to clipboard operation
pretty-routes copied to clipboard

Class Auth\LoginController does not exist

Open Braunson opened this issue 6 years ago • 1 comments

Receiving this error when trying to view the pretty-routes view.

Class Auth\LoginController does not exist (View: /home/vagrant/project/vendor/garygreen/pretty-routes/views/routes.blade.php)

Tracks back to this file views/routes.blade.php in this package:

<?php echo e(implode(', ', array_map($middlewareClosure, array_merge($route->middleware(), $route->controllerMiddleware())))); ?>

Seems to be caused by a group having middleware applied to it.

For example:

Route::prefix('submit')->middleware('auth')->group(function () {
    Route::get('/', 'SubmitController@showSubmit')->name('submit');
});

Running Laravel 5.5.24, fresh install of this package.

Braunson avatar Dec 10 '17 21:12 Braunson

I understand that the question in this thread is very old and, apparently, Gary is busy with the main work, so I released my version from the fork as self-contained package. It's easier to look at a package than to talk about its changes: https://github.com/andrey-helldar/pretty-routes

andrey-helldar avatar Oct 03 '20 12:10 andrey-helldar