mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
22 lines
583 B
PHP
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('notify.producer');
|
|
}
|
|
|
|
return app('notify.producer')->render($type, $message, $title, $options, $stamps);
|
|
}
|
|
}
|