mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
22 lines
585 B
PHP
22 lines
585 B
PHP
<?php
|
|
|
|
if (!function_exists('flasher')) {
|
|
/**
|
|
* @param string $message
|
|
* @param string $type
|
|
* @param string $title
|
|
* @param array $options
|
|
* @param array $stamps
|
|
*
|
|
* @return \Flasher\Prime\Flasher
|
|
*/
|
|
function flasher($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);
|
|
}
|
|
}
|