/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $types = Problem::lists('problem_types', 'problem_types'); $area = Area::lists('area', 'area'); $complaint = Complaint::findOrFail($id); $disable = 1; return view('complaints.edit', compact('complaint', 'types', 'area', 'disable')); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { $area = ['area' => Area::lists('nombre_area', 'id')]; return \View::make('Problematica/new_problematica', $area); }