I want to give access only for @gmail.com
address, but not for @outlook.com
address. How to code this logic in laravel.
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],//this is my email validation code
I want to give access only for @gmail.com
address, but not for @outlook.com
address. How to code this logic in laravel.
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],//this is my email validation code