我有一个兰花屏幕来显示报告,并希望按月和年显示。
http://url.com/main/report/2022/01
我的月台路线上有这个
Route::screen('/main/report/{year}/{month}', DashboardReportScreen::class)
->name('platform.report');如何从屏幕文件中访问年月日?
在我的DashboardReportScreen中,查询函数如下所示:
public function query(): iterable
{
print_r($year);
// NULL RETURN
}如何从屏幕中访问URI中的自定义参数?
发布于 2022-05-31 08:05:53
您需要将参数传递给屏幕文件中的"query“函数,如这里所示,https://orchid.software/en/docs/quickstart-crud/
https://stackoverflow.com/questions/72406687
复制相似问题