1.routes 目录下面创建 finance.php文件
use Illuminate\Support\Facades\Route; //操作记录 Route::group(['namespace' => 'Api\Finance', 'middleware' => ['throttle:60,1']], function () { });
2.Providers目录下RouteServiceProvider
public function map () { $this->mapFinanceRouters(); } //财务模块 protected function mapFinanceRouters () { Route::prefix('api/finance') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/finance.php')); }
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:https://wintersky.plus/index.php/archives/208/
hello world 2020年03月21日 15:29:58