Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation in controller

$validator = Validator::make($request->all(), [
            'password' => 'required|string',
            'email' => 'required|string|email',
        ]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #validation #controller
ADD COMMENT
Topic
Name
3+2 =