📜  gropu 路由上的 laravel 验证 - PHP 代码示例

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

代码示例1
Route::prefix('prefix_name')
    ->where(['prefix_variable' => '[0-9]+'])->group(function () {
        Route::get('get_link', function ($projectType) {
            dd($projectType);
        });
        Route::post('post_link', function ($projectType, $detail) {
            dd($projectType, $detail);
        });
    });