I am using laravel 5.3. and the package laracast/flash In if the msg are shown correctly but the close button of the flash window does not appear.
According to the documentation of laracast now the use should not be placed.
This is how I use it:
in controller:
flash("Se ha editado ".$user->nombre." de forma exitosa!", 'success');
In the view the include
@include('flash::message')
This works fine but the close button of the success window does not appear in this case, I thought it could be the browsers, but the same thing happens in different ones
According to the Laracasts/flash code, you should do it with the method
important()
:In the basic view of messages.blade.php you can see that it needs the value
flash_notification.important
to display the close button:important()
This information is added to the session in the Laracasts/Flash/FlashNotifier.php method.