/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $stateList = State::lists('name', 'name'); $lgaList = lga::lists('name', 'name'); $state = State::findorFail($id); $areas = $state->lgas->lists('name')->all(); return view('admin/location/edit', compact('state', 'areas', 'stateList', 'lgaList')); }