Advertisement
chilly2go

layout-blade-snippet showing status flash messages

Aug 3rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.78 KB | None | 0 0
  1.         // got flash data?
  2.         @if(session("status"))
  3.             // is array?
  4.             @if(is_array(session("status")))
  5.                 // for every entry
  6.                 @foreach (session("status") as $info)
  7.                     // output do assess problem
  8.                     {{ $info }}
  9.                     // vue-snotify notification toast component
  10.                     <snotify ntype="info" ntitle="Hinweis" ntext="'{!! $info !!}'"></snotify>
  11.                 @endforeach
  12.             @else
  13.                 // output do assess problem
  14.                 {{ session("status") }}
  15.                 // vue-snotify notification toast component
  16.                 <snotify ntype="info" ntitle="Hinweis" ntext="'{!! session("status") !!}'"></snotify>
  17.             @endif
  18.         @endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement