|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
+use Illuminate\Routing\UrlGenerator;
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
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');
|
|
|
+ }
|
|
|
}
|
|
|
}
|