Laravel API: Custom 404 Error Message (Laravel 11 Version)

preview_player
Показать описание
If you want to have the same default API "Not Found" message, there's a new place in Laravel 11 where to define it.

Support the channel by checking out my products:

Other places to follow:
Рекомендации по теме
Комментарии
Автор

One thing about 404 is that it applies to both missing resources and missing endpoints

l.b
Автор

Hi! Could you please make a video about custom exceptions in API apps, best practices, when to use it, how to change status code, put default message and etc. In the video NotFoundHttpException shows debug message when debug is true, but if you do custom, you won’t have such, how to be in that case? Isn’t it valuable to show that too?

non-stop
Автор

how to change message in sanctum "unauthorized"
and AuthGate middleware too.?

محمدابراهيم-ظض
Автор

How modify auth middleware in laravel 11

shankargorai
Автор

Laravel should come with secure messages by default instead of exposing sensitive information

wildfireDZ
visit shbcf.ru