app/Http/Controllers/Auth/RegisterUserController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        $user = User::create([
            'name' => $request->name,
            'email' => $request->email,
            'password' => Hash::make($request->password),
        ]);
        Auth::login($user);
        return redirect(RouteServiceProvider::HOME);
    }
public function store ( Request $ request ) { $ user = User :: create ( [ 'name' => $ request -> name , 'email' => $ request -> email , 'password' => Hash :: make ( $ request -> password ) , ] ) ; Auth :: login ( $ user ) ; return redirect ( RouteServiceProvider :: HOME ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//Validation //Registration