Configure the application's asset URL

This commit is contained in:
brufdev
2025-05-21 00:39:52 +01:00
parent 805caf0ed6
commit 8a1cdbfd29
+9
View File
@@ -36,6 +36,7 @@ final class AppServiceProvider extends ServiceProvider
$this->configureDates();
$this->configureModels();
$this->configureVite();
$this->configureAssetURL();
$this->configureSocialite();
}
@@ -64,6 +65,14 @@ final class AppServiceProvider extends ServiceProvider
Vite::useAggressivePrefetching();
}
/**
* Configure the application's asset URL.
*/
private function configureAssetURL(): void
{
config(['app.asset_url' => config('app.url')]);
}
/**
* Configure Laravel Socialite extra providers.
*/