We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e204692 commit 525045eCopy full SHA for 525045e
app/Providers/AppServiceProvider.php
@@ -2,9 +2,11 @@
2
3
namespace App\Providers;
4
5
+use App\Enums\Environment;
6
use App\Models\User;
7
use Illuminate\Http\Client\RequestException;
8
use Illuminate\Http\Resources\Json\JsonResource;
9
+use Illuminate\Support\Facades\URL;
10
use Illuminate\Support\Facades\Vite;
11
use Illuminate\Support\ServiceProvider;
12
use Laravel\Pulse\Facades\Pulse;
@@ -20,6 +22,8 @@ class AppServiceProvider extends ServiceProvider
20
22
{
21
23
public function boot(): void
24
25
+ URL::forceHttps(in_array(app()->environment(), [Environment::PRODUCTION, Environment::STAGING]));
26
+
27
RequestException::dontTruncate();
28
29
JsonResource::withoutWrapping();
0 commit comments