public function deleteTimerAction($id) { $timer = Timers::find($id); if ($timer != false and $timer->bashed !== '1') { $timer->delete(); return Redirect::route('home')->with('flash_msg', 'Timer Deleted'); } else { return Redirect::route('home')->with('flash_error', 'Timer Not Found or Already Marked'); } }