/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function Volumes($id) { $volumes = Volume::wherejournals_id($id)->get(); return view('public_journal.volumes', compact('volumes')); }
/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function Volumes($id) { $journal = Journal::where('id', '=', $id)->pluck('title'); $volumes = Volume::wherejournals_id($id)->get(); return view('public_journal.volumes', compact('volumes', 'journal')); }