Комментарии:
Excellent, Thanks a lot for your time and efforts
ОтветитьHi to everyone! There is a way to validate a two fields unique combination? I'm in a project which need to validate a combination of slug and category (The user can choose the slug in the form) in order to avoid duplicated urls. Thanks in advance
ОтветитьThank you so much ,
you are so amaizing
TBH, from this superb helpful video I learned a lot! Specially I never knew something like Fake Filler extension ever existed. It's really saving my time and improving my productivity.
Thanks Dear Povilas 🧡
Hi ..
this is the best channel I've ever seen ..
do you have any courses on the internet ? ..
THANKS
Sir, how to make unique validation of 2 or 3 fields in controller. ?
So when inputting the same data on 2 or 3 fields a notification will appear that the inputted data already exists.
thank you...
ОтветитьTry to use laravel validate and catch error in case file is bigger than upload_max_size or post_max_size!
ОтветитьThanks as always!
ОтветитьHello Sir,
I want to Validate One User Name... It may Either Email or Phone... I have two Regex... How to put OR condition in Laravel Validation...
Thanks in Advance.
how to custom massage validate with multi required_if 'notes' => ['required_if:status,2,0' , 'max:70' ],
ОтветитьGreat.. I didnt know "present" rule.. Amazing
ОтветитьHi. Offtopic. How to return response json from Request Form ?
Ответитьcan you just write __('Name is required') ?
ОтветитьI have issue with sometimes rule. I don't present any value to password and I get validation error rule, although it should trigger if I present some value.
ОтветитьValidated function is available in Validator::make!!!!
ОтветитьSir, please reply.
One of my senior told me to use validations inside MODELS, but in Laravel, I generally use FORM-REQUESTS to validate data (I use the same form request for API and WEB requests), he a developer in some other language and told me that, if you will use validations in MODELS, you will not need to write separately validate request in API, SEEDERS, CONTROLLERS etc, you can use the model validation just from one place, check the validation at boot function while self::creating.
So that anyone who tries to create any data using that model, validation must pass.
What you think about this approach.
can i use $request->validated() without form request? i use $request->validate() can i do with this method?
ОтветитьPoop-ton of useful information in this video. Thanks for all the great content, really appreciate it
Ответить