Пример #1
0
 /**
  * Clear the flash bag.
  *
  * @return mixed
  */
 public function clear()
 {
     return $this->session->getFlashBag()->clear();
 }
Пример #2
0
 /**
  * Methode qui va notifier une action
  *  + $message: le message de notre notification
  *  + $criticity:  success - danger - warning - info
  */
 public function notify($message, $criticity = "warning")
 {
     $this->session->getFlashBag()->add($criticity, $message);
 }