Laracasts\Flash\FlashNotifier::overlay PHP Method

overlay() public method

Flash an overlay modal.
public overlay ( string $message, string $title = 'Notice', string $level = 'info' )
$message string
$title string
$level string
    public function overlay($message, $title = 'Notice', $level = 'info')
    {
        $this->message($message, $level);
        $this->session->flash('flash_notification.overlay', true);
        $this->session->flash('flash_notification.title', $title);
        return $this;
    }

Usage Example

 /**
  * Flash an overlay modal.
  *
  * @param string $message
  * @param string $title
  * @return $this 
  * @static 
  */
 public static function overlay($message, $title = 'Notice')
 {
     return \Laracasts\Flash\FlashNotifier::overlay($message, $title);
 }