I want to accept email from just one server when someone is registering, for example "@myemail.com". If any other email address is given it will say your email is not valid.
Below is the validator of my registration controller. What should I do?
protected function validator(array $data)
{
return Validator::make($data, [
'name' => 'required|max:255',
'email' => 'required|email|max:255|unique:users',
'password' => 'required|min:6|confirmed',
/*'usertype' => 'required',*/
]);
}
myemail
andmyemail2
?? where should i add that?? – Incorporable