public function home_recent_work_view($id) { $pageTitle = "Excellence in the training & consultancy services in UK "; $data = RecentWork::where('id', $id)->first(); return View::make('pages.show_recent_work', compact('pageTitle', 'data')); }
public function destroy_recent_work($id) { $model = RecentWork::find($id); $model->delete(); Session::flash('message', 'Successfully deleted!'); return Redirect::back(); }