pretty-routes
pretty-routes copied to clipboard
Class Auth\LoginController does not exist
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.
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