laravel9开始路由新的定义方式
2023-04-11 本文已影响0人
elileo
use App\Http\Controllers\TestController;
Route::get('/', function () {
return view('welcome');
});
Route::any('/test', [TestController::class, 'index']);
Route::group(['prefix' => 'ad/v1'], function () {
Route::any('/', 'TestController@index');
});