一:空控制器
Controller->Error
public function __call($name, $arguments)
{
// TODO: Implement __call() method.
return show(config("status.controller_not_found"),"控制器不存在",null,404);
}
二:空方法
BaseController
public function __call($name, $arguments)
{
// TODO: Implement __call() method.
return show(config("status.action_not_found"),"{$name}方法不存在",null,404);
}
————————————————
版權聲明:本文爲CSDN博主「糯麥」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/u010566157/article/details/104651532/