/** * Show the application dashboard to the user. * * @return Response */ public function index() { //echo storage_path().'\framework\sessions';exit; $baits = Bait::lists('id', 'name_ro'); $fishs = Fish::where('enabled', 1)->orderBy('name_hu')->get(); $county = County::orderBy('name', 'asc')->get(); // print_r($county);exit; return view('home')->with(['baits' => $baits, 'fishs' => $fishs, 'county' => $county]); }
public function delete($id) { Fish::where('id', '=', $id)->update(array('enabled' => 0)); return Redirect::back()->with('message', 'Operation Successful !'); }