Files
DatBrowser/app/Providers/AppServiceProvider.php
2025-02-08 10:36:12 +01:00

34 lines
682 B
PHP

<?php
namespace App\Providers;
use App\Browser\BrowserJob;
use Illuminate\Routing\UrlGenerator;
use Illuminate\Support\Facades\Vite;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(UrlGenerator $url): void
{
Vite::prefetch(concurrency: 3);
dump(env('APP_URL'));
dump(config('app.url'));
if (str_starts_with(env('APP_URL'), "https://")) {
$url->forceScheme('https');
}
}
}