Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

validate laravel

$validatedData = $request->validate([
    'title' => ['required', 'unique:posts', 'max:255'],
    'body' => ['required'],
]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #validate #laravel
ADD COMMENT
Topic
Name
6+1 =