Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

sometimes validation in laravel

Docs don't make it clear, But removing required makes it work.

$this->validate($request, [
    'password' => 'sometimes|min:8',
]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #validation #laravel
ADD COMMENT
Topic
Name
9+4 =