$router->pattern('id', '[0-9]+');. 定義模式之後,會作用在所有使用這個特定參數的路由上: Route::get('user/{id}', function($id) { // 只有{id} 是數字才被呼叫。 } ...
確定! 回上一頁