public function deleteAll() { $noti = \App\NotificationHistory::where('status', '=', '1')->get(); foreach ($noti as $n) { $n->status = 0; $n->save(); } return redirect('notifications')->withFlashMessage("Suppression des notifications éffectué avec succès"); }