/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { // $data = []; $data['content'] = Specialization::find($id); $data['spec-cat'] = SpecializationCategory::lists('name', 'id'); return view('pages.admin.spec.edit', compact('data')); }