Instead of a collection of strings, I want to enhance this by making it a collection of Notification objects. This will make the project much more flexible and allow us to interact with it similar to Eloquent.
Notification
public title - this allows you to add a title to a notification
public message - the main content of the notification
public type - this would be the type of notification such as error, success, info, or general
public priority - this is an arbitrary integer to indicate priority similar to how z-index css property is managed.
Instead of a collection of strings, I want to enhance this by making it a collection of Notification objects. This will make the project much more flexible and allow us to interact with it similar to Eloquent.
Notification
title
- this allows you to add a title to a notificationmessage
- the main content of the notificationtype
- this would be the type of notification such as error, success, info, or generalpriority
- this is an arbitrary integer to indicate priority similar to how z-index css property is managed.