feat: loaded admin route

This commit is contained in:
JaguarJack 2023-02-24 17:09:34 +08:00
parent 662aee4c97
commit 7a6a9765ba

View File

@ -2,9 +2,11 @@
namespace App\Providers; namespace App\Providers;
use Catch\CatchAdmin;
use Illuminate\Cache\RateLimiting\Limit; use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Routing\CompiledRouteCollection;
use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Route;
@ -36,6 +38,12 @@ class RouteServiceProvider extends ServiceProvider
Route::middleware('web') Route::middleware('web')
->group(base_path('routes/web.php')); ->group(base_path('routes/web.php'));
}); });
$this->booted(function(){
$this->app->booted(function (){
loadCachedAdminRoutes();
});
});
} }
/** /**