Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validate string

$email = 'fake@email';

$validator = Validator::make(['email' => $email], [
  'email' => 'email'
]);

if ($validator->fails()) {
  return 'Invalid email';
}
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #validate #string
ADD COMMENT
Topic
Name
9+2 =