app/Http/Controllers/Auth/RegisterController.php
/**
     * Handle an incoming registration request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\RedirectResponse
     *
     * @throws \Illuminate\Validation\ValidationException
     */
Handle an incoming registration request.


Handle an incoming registration request .
protected function createUser(Request $request)
    {
        $request->validate([
            'name' => 'required|string|max:255',
            'email' => 'required|string|email|max:255|unique:users',
            'password' => 'required|string|min:6|confirmed',
        ]);
        Auth::login($user = User::create([
            'name' => $request->name,
            'email' => $request->email,
            'password' => Hash::make($request->password),
        ]));
        event(new Registered($user));
        return view('auth.verifikasi');
    }
protected function createUser ( Request $ request ) { $ request -> validate ( [ 'name' => 'required|string|max:255' , 'email' => 'required|string|email|max:255|unique:users' , 'password' => 'required|string|min:6|confirmed' , ] ) ; Auth :: login ( $ user = User :: create ( [ 'name' => $ request -> name , 'email' => $ request -> email , 'password' => Hash :: make ( $ request -> password ) , ] ) ) ; event ( new Registered ( $ user ) ) ; return view ( 'auth.verifikasi' ) ; }
Handle an incoming registration request.
Handle an incoming registration request .
// return redirect(RouteServiceProvider::HOME); // return view('auth.verify-email'); // return redirect()->intended('verification-verify'); // return redirect('/verify-email');