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

Fluent Interface for New Notifications #6

Closed jacurtis closed 7 years ago

jacurtis commented 7 years ago

It would be cool to have a fluent interface to allow you to generate new notifications. Once again, like eloquent or something like that.

Example

LaraFlash::new()->title('Error: ')->content('The Database Encountered a Problem!')->type('danger')->priority(10);

Chainable Commands

  1. new() - to generate a new notification
  2. title() - to set the title property
  3. content() - to set the content property
  4. type() - to set the type property
  5. priority() - to set the priority property
jacurtis commented 7 years ago

Resolved in b133729