|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
+use Illuminate\Routing\UrlGenerator;
|
|
|
use Illuminate\Support\Facades\Validator;
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
@@ -22,8 +23,12 @@ class AppServiceProvider extends ServiceProvider
|
|
|
*
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function boot()
|
|
|
+ public function boot(UrlGenerator $url)
|
|
|
{
|
|
|
Validator::extend('recaptcha', 'App\\Validators\\ReCaptcha@validate');
|
|
|
+
|
|
|
+ if (env('APP_ENV') && env('APP_ENV') !== 'local') {
|
|
|
+ $url->forceScheme('https');
|
|
|
+ }
|
|
|
}
|
|
|
}
|