refactor: Cache mail configuration, update route domains to use config() helper, and upgrade developer dependencies.

This commit is contained in:
pbao9
2026-03-17 11:44:42 +07:00
parent 50a5bfd530
commit 017248eeb9
8 changed files with 572 additions and 558 deletions
+4 -4
View File
@@ -39,26 +39,26 @@ class RouteServiceProvider extends ServiceProvider
$this->routes(function () {
// 1. Agency API — domain riêng → chỉ client.php
Route::domain(env('API_AGENCY_URL'))
Route::domain(config('app.api_agency_url'))
->middleware(['api', 'json.response'])
->namespace($this->namespace)
->group(base_path('routes/client.php'));
// 2. System API — bind về APP_URL
Route::domain(env('APP_URL'))
Route::domain(config('app.url'))
->prefix('api')
->middleware(['api', 'json.response'])
->namespace($this->namespace)
->group(base_path('routes/api.php'));
// 3. Admin Backend routes
Route::domain(env('APP_URL'))
Route::domain(config('app.url'))
->middleware('web')
->namespace($this->namespace)
->group(base_path('routes/admin.php'));
// 4. Web routes
Route::domain(env('APP_URL'))
Route::domain(config('app.url'))
->middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));