/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit() { // $gender = Gender::lists('gender', 'id'); $age = Age::lists('age', 'id'); $occupation = Occupation::lists('occupation', 'id'); $country = Country::orderBy('country')->lists('country', 'id'); //for alphabetic order $education = Education::lists('education', 'id'); //return Auth::User()->profile; return view('user.edit', compact('gender', 'age', 'occupation', 'country', 'education')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit(Employee $employee, Empqualification $qualification) { $edu = ['' => 'Select'] + Education::lists('name', 'id')->toArray(); return view('backend.employees.qualification.edit', compact('employee', 'qualification', 'edu')); }