Update AppServiceProvider

This commit is contained in:
2021-12-25 11:37:08 +01:00
parent ea545ed104
commit 0ff2eeb12d

View File

@@ -3,6 +3,7 @@
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\URL;
class AppServiceProvider extends ServiceProvider
{
@@ -23,8 +24,8 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
if($this->app->environment('production')) {
\URL::forceScheme('https');
if(env('APP_ENV') !== 'local') {
URL::forceScheme('https');
}
}
}