+ 2
How to raise 404 with dependency injection laravel
If i have these routes Route::resource('users', 'UsersController') And this in my controller public function show(User $user) { ... } When a user visits a url with a bad Id like /users/hello Then it will generate a SQLstate[22P02] error. How can I make this a 404
1 Antwort
+ 1
Yes