edvinaskrucas / notification

Notification package for Laravel
MIT License
526 stars 98 forks source link

Does not show the notification #68

Closed JFOC closed 8 years ago

JFOC commented 8 years ago

I have been set a notification in Controller Notification::warning('New password and confirm new password is mismatch !');

And in the view blade {!! Notification::showAll() !!}

But it seems does not show the notification because warning session is not set by Notification::warning

matthijs-neijenhuijs commented 8 years ago

Did you work add 'web' to your middleware in your routes? If you work with laravel 5.2

JFOC commented 8 years ago

Yes is using 'web' middleware in the routes

edvinaskrucas commented 8 years ago

What is the order of middlewares?

JFOC commented 8 years ago

The middleware is web only

npostman commented 8 years ago

Are you doing a redirect in your controller after setting the Notification? Or are you returning a view?

JFOC commented 8 years ago

@npostman Some returning view and other is redirecting. But it seems for unknown reason, the notification are working for now

hassansaqib commented 8 years ago

How did you solved this problem?

matthijs-neijenhuijs commented 8 years ago

There are packages that redirect, like the localization package. If you redirect for example to /contact, this package will redirect it to /nl/contact.

So be sure there is no redirect.