Files
php-flasher/helpers.php
T
2020-12-06 04:03:14 +01:00

22 lines
583 B
PHP

<?php
if (!function_exists('notify')) {
/**
* @param string $message
* @param string $type
* @param string $title
* @param array $options
* @param array $stamps
*
* @return \Flasher\Prime\Flasher
*/
function notify($message = null, $type = 'success', $title = '', array $options = array(), array $stamps = array())
{
if (is_null($message) && 0 === func_num_args()) {
return app('flasher.factory');
}
return app('flasher.factory')->render($type, $message, $title, $options, $stamps);
}
}