no message

This commit is contained in:
kuaifan
2021-05-29 22:13:58 +08:00
parent 8e770b02fe
commit f99f46efbb
12 changed files with 295 additions and 134 deletions

View File

@@ -13,6 +13,18 @@ use Redirect;
*/
class IndexController extends InvokeController
{
public function __invoke($method, $action = '', $child = '')
{
$app = $method ?: 'main';
if ($action) {
$app .= "__" . $action;
}
if (!method_exists($this, $app)) {
$app = method_exists($this, $method) ? $method : 'main';
}
return $this->$app($child);
}
/**
* 首页
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View