app/Http/Controllers/RegistrationController.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(CreateUser $request)
    {
        $user = User::create(request(['name', 'email', 'password']));
        Auth::login($user);
        return back()->with([
            'success' => 'Registered new user "' . $user['name'] . '" successfully!', 
            'url' => 'Now create some links!'
        ]);
    }
public function store ( CreateUser $ request ) { $ user = User :: create ( request ( [ 'name' , 'email' , 'password' ] ) ) ; Auth :: login ( $ user ) ; return back ( ) -> with ( [ 'success' => 'Registered new user "' . $ user [ 'name' ] . '" successfully!' , 'url' => 'Now create some links!' ] ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .