php Laravel ~ Attribute [controller] does not exist php Laravel ~ Attribute [controller] does not exist laravel laravel

php Laravel ~ Attribute [controller] does not exist


The controller method is deprecated since Laravel 5.3. But now, you can use the resource method, which is meant for the same purpose as the controller method.

Like This:

Route::resource('auth', 'LoginController');

or

Route::get('/auth','LoginController');Route::post('/auth','LoginController');