📜  laravel 路由全局约束 - Html 代码示例

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

代码示例1
/**
 * Define your route model bindings, pattern filters, etc.
 *
 * @return void
 */
public function boot()
{
    Route::pattern('id', '[0-9]+');

    parent::boot();
}