📜  laravel 8 路由命名空间 - PHP 代码示例

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

代码示例2
Route::group(['namespace' => 'App\Http\Controllers', 'prefix' => 'admin',
 'as' => 'admin.', 'middleware' => ['auth:sanctum', 'verified']], function()
{
    Route::get('/dashboard', ['DashboardController', 'index']);
});