First you pass value in controller :-
return View::make('admin_pages.dashboard')->with('message',$message);
and get this messages on view page :-
<span>@if ($alert = Session::get('message'))
{{ $alert }}
@endif </span>
return View::make('admin_pages.dashboard')->with('message',$message);
and get this messages on view page :-
<span>@if ($alert = Session::get('message'))
{{ $alert }}
@endif </span>
No comments:
Post a Comment