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);
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community