Support the ongoing development of Laravel.io →
Authentication Database Eloquent
Last updated 2 years ago.
0

I attempted to reply, but it gave me an error, so I'm guessing you have literally just updated your post. I'm guessing I was right. Your requested data wasn't being parsed? A simpler way would be to use method injection like this:

	/**
	* Save a new user.
	* 
	* @param request 
    * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
	*/
	private function createUser($request)
	{
		$user = User::create($request->all());
		
		return redirect('profile/' . $user->id);
	}
Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.