路由
作者:互联网
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"); });
标签:function,index,get,Route,phpinfo,TestController,路由 来源: https://www.cnblogs.com/CanyingV/p/15243693.html