/** * @param integer $id * * @return \Illuminate\Http\RedirectResponse */ public function delete($id) { $bulletin = Bulletin::find($id); $response = redirect()->route('bulletins.list'); if ($bulletin) { $bulletin->delete(); $bulletin->with('message', 'Bulletin has been deleted sucessfully'); } else { $bulletin->with('message', 'Invalid bulletin.'); } return $response; }