Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

validate rule on laravel

$request->validate([
    'title' => 'required|unique:posts|max:255',
    'body' => 'required',
    'publish_at' => 'nullable|date',
]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #validate #rule #laravel
ADD COMMENT
Topic
Name
8+5 =