You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
941 B

<?php
if (!function_exists('alert')) {
/**
* Return app instance of Alert.
*
* @param string $title
* @param string $message
* @param string $type
* @author Rashid Ali <realrashid05@gmail.com>
*/
function alert($title = '', $message = '', $type = '')
{
$alert = app('alert');
if (!is_null($title)) {
return $alert->alert($title, $message, $type);
}
return $alert;
}
}
if (!function_exists('toast')) {
/**
* Return app instance of Toast.
*
* @param string $title
* @param string $type
* @param string $position
* @author Rashid Ali <realrashid05@gmail.com>
*/
function toast($title = '', $type = null, $position = 'bottom-right')
{
$alert = app('alert');
if (!is_null($title)) {
return $alert->toast($title, $type, $position);
}
return $alert;
}
}