Documentation
Notification
The notification helper provides simple session storage service.
set(string $key, mixed $value)
Adds specific variable to the Notifications array.
Notification::set('success', 'Data has been saved with success!'); Notification::set('errors', 'Data not saved!');
setNow(string $key, mixed $value)
Adds specific variable to the Notifications array for current page.
Notification::setNow('success', 'Success!');
get(string $key)
Returns a specific variable from the Notifications array.
echo Notification::get('success'); echo Notification::get('errors');
clean()
Clears the Notifications array.
Data that previous pages stored will not be deleted, just the data that page stored itself.
Notification::clean();