|
|
@ -3,6 +3,7 @@ |
|
|
|
namespace App\Providers; |
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider; |
|
|
|
use Illuminate\Routing\UrlGenerator; |
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider |
|
|
|
{ |
|
|
@ -21,8 +22,10 @@ class AppServiceProvider extends ServiceProvider |
|
|
|
* |
|
|
|
* @return void |
|
|
|
*/ |
|
|
|
public function boot() |
|
|
|
public function boot(UrlGenerator $url) |
|
|
|
{ |
|
|
|
//
|
|
|
|
if (env('APP_ENV') !== 'local') { |
|
|
|
$url->forceScheme('https'); |
|
|
|
} |
|
|
|
} |
|
|
|
} |