alpha numeric with spaces validation in laravel code example
Example 1: laravel validation alphanumeric with spaces
[
'field' => 'regex:/^[a-zA-Z0-9\s]+$/',
]
Example 2: laravel validation alphanumeric with spaces
[
'field' => 'regex:[a-zA-Z0-9\s]+',
]