mercredi 23 décembre 2015

Route::auth() and namespacing

I have used make:auth to create the login scaffold which works nicely in the base app. However I am creating a package so I have moved the files to their respective places in my package.

I have namespaced the route created by the make:auth app to

Route::group(['middleware' => 'web'], function () {
    Route::auth();

    Route::get('/home', 'Package\Namespace\HomeController@index');
});

When I comment out Route::auth(); everything seems to work fine. When I keep Route::auth I get an error

Class Auth\AuthController does not exist

I cannot understand what the issue is. I don't know much about the auth() helper function.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire