edvinaskrucas / notification

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

collections not working #27

Closed nonsenz closed 10 years ago

nonsenz commented 10 years ago

I try to use containers but can't get them working.

Code in Eventhandler:

Notification::container('myContainer')->info('foo');
Notification::info('bar');

code in template:

{{ Notification::container('myContainer')->showInfo(':message') }}
{{ Notification::showInfo(':message') }}

output:

bar

Am I missing something in the docs?

edvinaskrucas commented 10 years ago

You should register your container's types in config. For your example you need to add to default_types config section 'myContainer' => array('info'), it should help.

nonsenz commented 10 years ago

That worked. Thx again for the package and the support. I think your hint should be part of the docs. Maybe you get a pull request later ;-)

edvinaskrucas commented 10 years ago

Good to know that it is working. :)