Flutter, Laravel, Vue - Idea To Deployment - Part-10- Request Validation & Custom Request

preview_player
Показать описание
When a user sends a request to the server, the request may contain any kind of data in it. But we can't store random data into our database.
We need a specific set of data or inputs to get from the client and store it into our database, otherwise we'll face with many errors.
In this part we will cover how to Validate the incoming requests from the client and also how to create a custom request to customize the response we give to the user after validation fails.

Laravel validation:
Рекомендации по теме
Комментарии
Автор

I have a question when making the validation request, should the foreign key not be filled in automatically due to the eloquent relationship we set up?

MsSplashIt
welcome to shbcf.ru