laravel if validate code example
Example 1: laravel validation for mobile number
//inside laravel request rules(), add this for phone number varification
'phone' => 'required|min:11|numeric',
Example 2: laravel validation
Rule::unique('users')->ignore($user)