路由

use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return view('welcome');
});
Route::get('phpinfo', function () {
    return phpinfo();
});
Route::prefix('test')
    ->namespace('Api')
    ->middleware(['before','after'])
    ->group(function () {
        Route::get('index', "TestController@index");
        Route::get('insert', "TestController@insert");
    });

 

posted @ 2021-09-08 17:21  CanyingV  阅读(17)  评论(0编辑  收藏  举报