sometimes meaning in validation laravel code example
Example: sometimes validation in laravel
Docs don't make it clear, But removing required makes it work.
$this->validate($request, [
'password' => 'sometimes|min:8',
]);
Docs don't make it clear, But removing required makes it work.
$this->validate($request, [
'password' => 'sometimes|min:8',
]);