laravel validation required in code example
Example 1: field not required validation laravel
$this->validate($request, [
"field_nullable" => "nullable"
]
Example 2: laravel validation
Rule::unique('users')->ignore($user)
$this->validate($request, [
"field_nullable" => "nullable"
]
Rule::unique('users')->ignore($user)