/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\RedirectResponse */ public function destroy($id) { $this->job_tags->findOrFail($id)->delete(); return \Redirect::route('admin.job_tags.index')->withMessage(trans('tag.tags-controller-successfully_deleted')); }
/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function getUpload($id) { $job = $this->jobs->findOrFail($id); return \View::make('admin.jobs.upload')->with(compact('job')); }