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