예제 #1
0
 public function execute(RequestInterface $request, ResponseInterface $response, ViewInterface $view)
 {
     $job = new Jobs();
     $job->setRank(10);
     $view->setTemplate('jobs/index.php');
     $view->pass('jobs', $job);
     return true;
 }
 public function index()
 {
     $jobs = Jobs::all();
     $stackoverflow_profile = Stackoverflow::me();
     $stackoverflow_tags = Stackoverflow::me_tags();
     return $this->render(array('data' => compact('jobs', 'stackoverflow_profile', 'stackoverflow_tags'), 'layout' => 'resume'));
 }
예제 #3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $jobs = Jobs::findOrFail($id);
     $jobs->fill(["Deleted" => Carbon::now()])->save();
     return redirect(route('admin.jobs.index'));
 }