Skip to content

Commit

Permalink
fix: forceSchema does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuchi committed May 15, 2020
1 parent 9a6477d commit 3e814f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Providers;

use Illuminate\Routing\UrlGenerator;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
Expand All @@ -22,10 +21,10 @@ public function register()
*
* @return void
*/
public function boot(UrlGenerator $url)
public function boot()
{
if (env('APP_ENV') === 'production') {
$url->forceSchema('https');
$this->app['request']->server->set('HTTPS', true);
}
}
}

0 comments on commit 3e814f9

Please sign in to comment.