Laravel: How To Create Your Own Custom Validation Rule

preview_player
Показать описание
Quick video on how to create and use a validation rule that doesn't exist in Laravel by default.

This video is an answer to a question I've received on one of the older videos.

- - - - -
Liked the free video? Check out my premium online courses:

- - - - -

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

I was struggling so much with a custom database query upon registration. I probably read 15 guides already, which all where absolutely trash. This video, these 45 seconds of relevant information, where all I needed.


Thank you so much.

longdashes
Автор

U just saved my butt, had a meeting in 30minutes and I was able to implement this Custom Validation Rule. Not all heroes wear capes, thanks man.

sirbangalot
Автор

If I'm looking for solution for any Laravel issue, I find for sure Your videos. What is the very usefull and solution for my problems. Thx.

GergelyCsermely
Автор

Dear Povilas,

I would like to thank you for the solution, this by far is the most efficient method i have seen so far. When I try to implement this, I do notice an issue; if there is an existing appointment in between the new start and finish time.

Eg : in the DB there is already an appoint of 0900 to 1000, the user is trying to add a new appointment 0830 to 1030.

The validation would still let it pass.

eugeneyap
Автор

Hi Povilas. Thank you very much for making this video. Much appreciated sir ! Have a great day

claudiobrt
Автор

Thanks Povilas, very very useful for practical in marketplace

tjoasusanto
Автор

does it work with sending api errors too?

Kamil
Автор

So much I can learn from your channel. Great works!

andreaho
Автор

why i get this could not be converted to string from the rule class
and my request has
'from'=> 'date_format:Y-m-d', new stock(),
'to'=> 'date_format:Y-m-d|after:from', new stock(),

basemovic
Автор

can we create this validation rules in a constructor and call it in a function ???

jintuthomas
Автор

Please what's the link to the initial appointment tutorial and its github repo

afuwapesunday
Автор

Hi, can you explain how (libphonenumber-for-php) package in Github in Laravel with (custom validation rule) please, thanks?

ridafakherlden
Автор

Hi Povilas, Thank you very much for this video. I did what you didn't exactly but it's not working, it always gives me the error in the rule message method.

mahmoudghalayini
Автор

Thank you very much! What's the name of the Chrome Plugin to complete field automatically?

margonar
Автор

Hlw sir,
Sir In Laravel, is there any laravel theming system like wordpress. If it is plz let me know or if it is not then how can I implements this...
It would be very helpful for me. plz let me know.
And plz give some instruction or plz make video on laravel theming like wordpress theming.
Thank you in advanced :)

neerajsinghtangariya
Автор

how to make validation only up to 3 visitors when choosing the same date and time

sativasetyadji
Автор

how to add custom validation rule without the required validation?

Randomaniac_ISHERE