Laravel: How To Create Your Own Custom Validation Rule

Laravel: How To Create Your Own Custom Validation Rule

Laravel Daily

4 года назад

25,709 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Kamil505
@Kamil505 - 20.11.2022 22:36

does it work with sending api errors too?

Ответить
@ivankevamo
@ivankevamo - 20.12.2021 05:15

Thanks a lot mate!

Ответить
@tjoasusanto
@tjoasusanto - 11.11.2021 08:05

Thanks Povilas, very very useful for practical in marketplace

Ответить
@yogahadinugroho5630
@yogahadinugroho5630 - 17.09.2021 06:20

how to add custom validation rule without the required validation?

Ответить
@sativasetyadji1288
@sativasetyadji1288 - 11.09.2021 21:26

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

Ответить
@eugeneyap4551
@eugeneyap4551 - 05.08.2021 06:30

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.

Ответить
@upperlip
@upperlip - 11.07.2021 16:31

Is that the bootstrap date time picker? Would you recommend using it with Livewire, or is there a better option?

Ответить
@nikola3013
@nikola3013 - 05.07.2021 17:09

Thank you sir, very helpful.

Ответить
@jintuthomas6766
@jintuthomas6766 - 26.06.2021 12:18

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

Ответить
@sirbangalot569
@sirbangalot569 - 24.06.2021 11:40

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.

Ответить
@basemovic7600
@basemovic7600 - 10.05.2021 15:53

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(),

Ответить
@GergelyCsermely
@GergelyCsermely - 11.04.2021 20:16

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.

Ответить
@afuwapesunday5423
@afuwapesunday5423 - 11.01.2021 09:31

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

Ответить
@ridafakherlden4682
@ridafakherlden4682 - 07.01.2021 19:00

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

Ответить
@alila3883
@alila3883 - 31.12.2020 10:58

Very helpfull

Ответить
@ElvisKipkorir
@ElvisKipkorir - 21.07.2020 23:47

Very useful tutorial.

Ответить
@mahmoudghalayini6605
@mahmoudghalayini6605 - 03.06.2020 14:42

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.

Ответить
@longdashes
@longdashes - 18.05.2020 05:04

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.

Ответить
@andreaho4841
@andreaho4841 - 16.02.2020 12:41

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

Ответить
@5kr1p7
@5kr1p7 - 07.02.2020 00:00

very useful videos. thx

Ответить
@neerajsinghtangariya2587
@neerajsinghtangariya2587 - 23.01.2020 22:20

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 :)

Ответить
@margo15nar
@margo15nar - 23.01.2020 15:16

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

Ответить
@claudiobrt652
@claudiobrt652 - 20.01.2020 17:32

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

Ответить