DevMarketer / LaraFlash

A powerful and flexible flash notifications system. Improving over built-in Laravel Flash messaging functionality.
MIT License
64 stars 15 forks source link

Create methods to instantiate a Notification with Type #5

Closed jacurtis closed 7 years ago

jacurtis commented 7 years ago

To keep it simple we want to be able to add a method that enables a user to easily set the notification type with a method and the content.

Something like this:

jacurtis commented 7 years ago

Ok so i set these up with variable parameters. This will need to go into the documentation.

I will use info() as an example, but this applies to any of them, the difference being that it changes the type to whichever function you are using.