📌  相关文章
📜  Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be an valid callback, non-static method app\controllers\ProductController::update() 不能被静态调用 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:28.347000             🧑  作者: Mango

代码示例1
$app->router->get('/about', [AboutController::class, 'index']); // from this

$app->router->get('/about', [new AboutController(), 'index']); // to this