Closed npostman closed 7 years ago
If anyone wants to use this and this PR is not merged yet use this:
composer.json
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Kyslik/notification"
}
],
"require": {
"edvinaskrucas/notification": "dev-feature-has-type",
},
if you want all-pr that pass tests use this:
"require": {
"edvinaskrucas/notification": "dev-all-pr",
},
A new function to determine if the NotificationBag has a Message of a specific type. I was unable to find a way to do this easy, so I added a function for it.
My usage in Laravel 5: In controller:
In Blade template: