Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation allow empty array

public function createSomeResource(Request $request)
{
    $this->validate($request, [
        'items' => 'present|array',
    ];
    ...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #validation #empty #array
ADD COMMENT
Topic
Name
8+5 =