no message
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user