Skip to content

Commit

Permalink
Changed location of forceScheme to inside of boot() to avoid Mixed Co…
Browse files Browse the repository at this point in the history
…ntent warning
  • Loading branch information
katsulon committed Dec 7, 2024
1 parent adddc67 commit 0668141
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions timeliner/app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\URL;
if (env('APP_ENV') === 'production') {
URL::forceScheme('https');
}

class AppServiceProvider extends ServiceProvider
{
Expand All @@ -23,6 +20,8 @@ public function register(): void
*/
public function boot(): void
{
//
if (env('APP_ENV') === 'production') {
URL::forceScheme('https');
}
}
}

0 comments on commit 0668141

Please sign in to comment.