Answer the question
In order to leave comments, you need to log in
Router In Laravel Is that right?
There is a route that only an authorized user can go through.
But there are also routes for all users.
That is, in create only authorized, it was possible to do something like this. But is it true?
Route::resource('/adboard', 'AdboardController',
['only' => ['index', 'store', 'show', 'create']]);
Route::get('/adboard/create', [
'middleware' => 'auth',
'uses' => '[email protected]'
]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question