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 Auth\LoginController does not exist #34

Open
Braunson opened this issue Dec 10, 2017 · 1 comment
Open

Class Auth\LoginController does not exist #34

Braunson opened this issue Dec 10, 2017 · 1 comment

Comments

@Braunson
Copy link

Braunson commented Dec 10, 2017

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.

@andrey-helldar
Copy link

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

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

2 participants