Exemplo n.º 1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  Request  $request
  * @param  int  $id
  * @return Response
  */
 public function update(Jobapp $jobapp)
 {
     $input = array_except(Input::all(), '_method');
     //$input = Input::except(['_method', '_token']);
     $jobapp->update($input);
     return Redirect::route('jobapps.index')->with('message', 'บันทึกข้อมูลการสมัครเรียบร้อย');
 }
Exemplo n.º 2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     Date::setLocale('th');
     $user = Auth::user();
     $jobapps = Jobapp::all();
     return view('hr.jobapps.index', compact('jobapps', 'user'));
 }