add fix in appservice provider

This commit is contained in:
aslan 2024-02-16 15:59:29 +03:00
parent 65d9b41197
commit f8f6d4b3d3
2 changed files with 7 additions and 3 deletions

View File

@ -2,6 +2,7 @@
namespace App\Providers; namespace App\Providers;
use Illuminate\Routing\UrlGenerator;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider class AppServiceProvider extends ServiceProvider
@ -17,8 +18,10 @@ class AppServiceProvider extends ServiceProvider
/** /**
* Bootstrap any application services. * Bootstrap any application services.
*/ */
public function boot(): void public function boot(UrlGenerator $url): void
{ {
// if (env('APP_ENV') == 'production') {
$url->forceScheme('https');
}
} }
} }

View File

@ -3,7 +3,8 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build" "build": "vite build",
"prod": "vite build"
}, },
"devDependencies": { "devDependencies": {
"@popperjs/core": "^2.11.6", "@popperjs/core": "^2.11.6",