過去に使用されたユーザー名で登録できないようにする

This commit is contained in:
shibafu 2019-11-16 00:25:43 +09:00
parent f132955be7
commit 73ee9f108b

View File

@ -48,7 +48,7 @@ class RegisterController extends Controller
protected function validator(array $data)
{
$rules = [
'name' => 'required|string|regex:/^[a-zA-Z0-9_-]+$/u|max:15|unique:users',
'name' => 'required|string|regex:/^[a-zA-Z0-9_-]+$/u|max:15|unique:users|unique:deactivated_users',
'email' => 'required|string|email|max:255|unique:users',
'password' => 'required|string|min:6|confirmed'
];