/** * Create a new record and redirect to the edit page. * * @return \Illuminate\Http\RedirectResponse */ public function create() { $fragment = new Fragment(); $fragment->save(); return redirect()->action('Back\\FragmentController@edit', [$fragment->id]); }