public function postCreate() { $postValue = $this->getProfileInput(); $profile = new Profile(); if ($profile->validate($postValue)) { $profile->fill($postValue); $profile->save(); return redirect(route('home')); } else { return view('profile.create', compact('profile')); } }