Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel enum validation

use AppEnumsServerStatus;
use IlluminateValidationRulesEnum;
 
$request->validate([
    'status' => [new Enum(ServerStatus::class)],
]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #enum #validation
ADD COMMENT
Topic
Name
8+1 =