Answer the question
In order to leave comments, you need to log in
Why is the route binding to the model not returning 404?
In the route specified
Route::get('/{user}/profile/edit/', [
'as' => 'profile-edit',
'uses' => '[email protected]'
])->middleware('auth');
Route::model('user', \App\User::class);
Route::get('/{user}/profile/edit/', function (\App\User $user) {
return $user->email;
});
Answer the question
In order to leave comments, you need to log in
So isn't it a 404 (NotFoundHttpException)? There will be no messages for production
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question