<?php public function store(Request $request){ $this->validate($request, [ 'login' => 'required', 'password' => 'required|alpha_num|between:4,12|confirmed', 'password_confirmation' => 'required|alpha_num|between:4,12', 'phone' => 'required|digits:11', ]); $user = User::create(request(['login', 'password', 'phone'])); auth()->login($user); return redirect()->home(); }
You have javascript disabled. You will not be able to edit any code.