/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function view() { $mainissue = MainIssue::All(); $subissue = SubIssue::All(); return View('register.view')->with(['mainissue' => $mainissue, 'subissue' => $subissue]); }
function getsubissuename($id) { $subissuename = SubIssue::findorfail($id); return $subissuename->subissue_name; }
public function getsubissue() { $subissue = SubIssue::All(); return $subissue; }