D
D
Denis Bukreev2017-09-30 17:54:37
Laravel
Denis Bukreev, 2017-09-30 17:54:37

Laravel throws an error that there is no controller - why?

So it goes.
Documentation:
59cfafb66cc1f233497527.png
My code:

Route::post('/owner/login', 'Auth\LoginController');

The controller itself (which, by the way, comes initially):
59cfafee1b005390861405.png
Error:
"Invalid route action: [App\Http\Controllers\Auth\LoginController]."
And I'm sitting here in bewilderment - what kind of nonsense?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vanya Huk, 2017-09-30
@denisbookreev

method specify

Route::post('/owner/login', 'Auth\[email protected]');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question