E -Mail -Validierung in Laravel
'email' => 'required|email|unique:users,email',
//@sujay
$uj@y
'email' => 'required|email|unique:users,email',
//@sujay
"sale_price" => "required_if:list_type,==,selling"
$request->validate([
'daily_movement_id'=>'required_with:daily_movement',
'daily_movement'=>'required_with:daily_movement_id',
]);
//////////////////////////////////////////////////////
$request->validate([
'daily_movement_id'=>'required_without:daily_movement',
'daily_movement'=>'required_without:daily_movement_id',
]);
public function rules()
{
return [
'reclamo_procede' => 'max:1',
'solucion_minutos' => 'required_if:reclamo_procede,==,si',
];
}
$validator = Validator::make($request->all(), []);
$validator->sometimes('email', 'unique:users,email', function ($input) {
return $input->email !== Auth::user()->email;
});
//@sujay