How to achieve the same using diferent validation?

|
2021-01-26 13:52:27
https://amzn.to/3a5XfHn

Python Data Science Handbook: Essential Tools for Working with DataAmazon
sadeqi125 2021-01-26 14:39:16
how to save lastseen user time for multiple guard in laravel
michals 2021-01-26 18:42:28
Hi! I just installed laravel via laravel sails and try to make first test. After setting up new db data in phpunit.xml I get Call to a member function connection() on null
michals 2021-01-26 18:42:40
any help? suggestions?
NanoCellMusic 2021-01-26 19:15:37
michals 2021-01-26 18:42:28
Hi! I just installed laravel via laravel sails and try to make first test. After setting up new db data in phpunit.xml I get Call to a member function connection() on null

https://laravel.com/docs/8.x/testing#environment

michals 2021-01-26 19:17:23
yeah I read that
michals 2021-01-26 19:17:39
5 hours ago
Joice 2021-01-26 19:20:59
laravel_discuss-67942.jpg
The phone ,spouse_mob,parent_mob,refone_mob,reftwo_mob must be different fron each other in the form…
Joice 2021-01-26 19:21:27
Joice 2021-01-26 19:20:59
The phone ,spouse_mob,parent_mob,refone_mob,reftwo_mob must be different fron each other in the form…

How to achieve the same using diferent validation?

Joice 2021-01-26 19:21:57
laravel_discuss-67944.jpg
Is this a correct way for that
2021-01-26 19:25:36
I want learn laravel from basic how and where I can start
2021-01-26 19:25:47
Please suggest me
DesolatorMagno 2021-01-26 19:54:49
2021-01-26 19:25:47
Please suggest me

https://laravel.com/docs/8.x
https://laracasts.com/series/laravel-6-from-scratch
https://coderstape.com/

Laravel 6 From ScratchLaracasts
In this series, step by step, I’ll show you how to build web applications with Laravel. We’ll start with the basics and incrementally dig deeper and deeper, as we review real-life examples. Once complete, you should have all the tools you need. Let’s get to work!
Joice 2021-01-26 19:55:22
Joice 2021-01-26 19:20:59
The phone ,spouse_mob,parent_mob,refone_mob,reftwo_mob must be different fron each other in the form…

..

DesolatorMagno 2021-01-26 19:56:29
You know how array works?
DesolatorMagno 2021-01-26 19:57:18
$value[‘name’] = ‘something’
$value[‘name’] = ‘else’
that’s what you are doing.
Joice 2021-01-26 20:06:53
DesolatorMagno 2021-01-26 19:57:18
$value[‘name’] = ‘something’
$value[‘name’] = ‘else’
that’s what you are doing.

I am not getting you

DesolatorMagno 2021-01-26 20:09:16
Joice 2021-01-26 19:21:57
Is this a correct way for that

You are not writing multiple conditions for the same input, you are overwriting over and over the rules.

DesolatorMagno 2021-01-26 20:09:27
laravel_discuss-67955.jpg

DesolatorMagno 2021-01-26 20:10:37
laravel_discuss-67956.jpg

Joice 2021-01-26 20:14:59
Ok understood
Joice 2021-01-26 20:15:27
DesolatorMagno 2021-01-26 20:09:16
You are not writing multiple conditions for the same input, you are overwriting over and over the rules.

How to write multiple conditions

Joice 2021-01-26 20:15:38
For this validation
DesolatorMagno 2021-01-26 20:16:29
I never did have to write the same condition multiples time, but i don’t see why it can’t be possible.
Joice 2021-01-26 20:23:02
I have a form ..that has many phone number input fields…and I wanted every number to be different from other fields
Joice 2021-01-26 20:23:12
Any help from you ?
DesolatorMagno 2021-01-26 20:24:05
LOL, you did it in the worst way possible.
DesolatorMagno 2021-01-26 20:24:19
Is hard to explain, it would require a table.
DesolatorMagno 2021-01-26 20:25:46
$a, $b, $c, $d

you don’t want any of them to be the same, but think for a second, yo don’t need to check the same for every option

Joice 2021-01-26 20:26:45
$a Different from b
Then b different from c
Then c diffrnt from d
DesolatorMagno 2021-01-26 20:27:44
Yes, and just show a single error if any of those return error “All the phone number must be different” or something like that.
Joice 2021-01-26 20:28:06
DesolatorMagno 2021-01-26 20:27:44
Yes, and just show a single error if any of those return error “All the phone number must be different” or something like that.

But there is a problem

Joice 2021-01-26 20:28:16
All the phone fields are not mandatory
DesolatorMagno 2021-01-26 20:29:59
But still you would have (having a,b,c,d as field)

a != b && a != c && a != e
b != c && b != d
c != d

Joice 2021-01-26 20:30:16
Ohkkk
|