2021
07-22
07-22
浅谈一种Laravel路由文件划分方式
最初,我想到了利用路由组方法可以接收文件,这就是laravel在RouteServiceProvider处拆分路由的方式。<?phpnamespaceApp\Providers;useIlluminate\Foundation\Support\Providers\RouteServiceProviderasServiceProvider;useIlluminate\Support\Facades\Route;classRouteServiceProviderextendsServiceProvider{protected$namespace='App\Http\Controllers';publicfunctionboot(){parent::boo...
继续阅读 >