public function notification($string, $type = null)
    {
        if (is_null($type)) {
            $type = 'info';
        }

        Session::flash('notification', $string);
        Session::flash('notificationType', 'alert-'.$type);
    }
public function notification($string, $type = null)
    {
        if (is_null($type)) {
            $type = 'info';
        }

        Session::flash('notification', $string);
        Session::flash('notificationType', 'alert-'.$type);
    }
public function notification ( $ string , $ type = null ) { if ( is_null ( $ type ) ) { $ type = 'info' ; } Session :: flash ( 'notification' , $ string ) ; Session :: flash ( 'notificationType' , 'alert-' . $ type ) ; }
Generates a notification for the app.

@param string $string Notification string
@param string $type   Notification type
Generates a notification for the app .