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