Laravel Validation: Required if/with/without

Laravel Validation: Required if/with/without

Laravel Daily

5 лет назад

12,295 Просмотров

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


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

@dimitrifalowski
@dimitrifalowski - 10.12.2022 10:15

Do you have video to fill Cities?

I expect one country can have multiple cities
and when it has same city in one country, it will be error

Please help me

Ответить
@emuqatash
@emuqatash - 05.05.2022 18:03

hi, will this validation 'required_if:' work in laravel 5.6?

Ответить
@kunalrajput2234
@kunalrajput2234 - 09.02.2022 12:29

Great Thanks

Ответить
@PanZabicom
@PanZabicom - 26.11.2021 17:42

Hey, An example input filed:- one, two, three, four and have another one checkbox. Actually i want if checkbox is checked (one,two, three,four) will be required how it possible

Ответить
@lastninja2022
@lastninja2022 - 09.10.2021 06:12

how can we make date validator like it wont accept the year 0000

Ответить
@sativasetyadji1288
@sativasetyadji1288 - 10.09.2021 06:52

how to make a condition if you want to choose a booking time but it's already full

Ответить
@agamurat3019
@agamurat3019 - 20.07.2021 18:22

thank you very much that was very helpful

Ответить
@Paltibenlaish
@Paltibenlaish - 25.11.2020 22:14

great tip,
what if I need to check something else and do a query can I have like a callback and get the other value?
im asking in the case I have a csv file and cannot use request()->get()

Ответить
@seventcentlothy105
@seventcentlothy105 - 25.09.2020 15:41

Thank you sir for your tutorial but i have one problem in my project so i need your help, ok the problem is i want to save data from a text field to the db but some of them not necessary or mandatory so how can save null value in mysql bd using laravel

Ответить
@TristanBailey
@TristanBailey - 02.01.2019 17:12

great tip, have not seen required_if used before. Could be handy to get the order of errors corrected first.

Ответить
@GamePlayByFaks
@GamePlayByFaks - 02.01.2019 09:21

Interesting instead of auth check you use instead Gate policy on form requests.

Ответить
@bernardonigbinde
@bernardonigbinde - 02.01.2019 09:03

Great tip! Thanks a lot!

Ответить