edvinaskrucas / notification

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

Laravel 5 support is broken #48

Closed tharshanlk closed 9 years ago

tharshanlk commented 9 years ago

Please refer to : https://github.com/laravel/framework/issues/6583

Azirius commented 9 years ago

If you use the package LaravelFivePackageBridges you can get it working again.

However it still won’t work, this is because the session store is empty when the onBoot method fires and therefore won’t load stored notifications. Instant notifications will work fine, but flashed ones won’t.

I find this one liner gets it working again:

$events->fire(‘notification.booted’, \App::make(‘notification’));

benswinburne commented 9 years ago

@Azirius where did you put $events->fire(...) in order to get flashed messages to work?

edvinaskrucas commented 9 years ago

Hey, just released v5.0.0, You should check it.