This commit is contained in:
2020-09-09 11:44:14 +08:00
parent cb7ae39786
commit f2b09eebf0
4 changed files with 56 additions and 5 deletions
+15
View File
@@ -239,6 +239,21 @@ if (!function_exists('response')) {
}
if (!function_exists('send')) {
/**
* @param $context
* @param $statusCode
* @return bool|Response|stdClass|string
* @throws Exception
*/
function send($context, $statusCode = 200)
{
return \response()->send($context, $statusCode);
}
}
if (!function_exists('redirect')) {
function redirect($url)