/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { $volume = Volume::lists('title', 'id'); return view('issue.create', compact('volume')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $volume = Volume::lists('title', 'id'); $issue = Issue::whereid($id)->firstOrfail(); return view('issue.edit', compact('issue', 'volume')); }