12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace App\Providers;
- use Illuminate\Routing\UrlGenerator;
- use Illuminate\Support\Facades\Validator;
- use Illuminate\Support\ServiceProvider;
- class AppServiceProvider extends ServiceProvider
- {
- /**
- * Register any application services.
- *
- * @return void
- */
- public function register()
- {
- //
- }
- /**
- * Bootstrap any application services.
- *
- * @return void
- */
- public function boot(UrlGenerator $url)
- {
- Validator::extend('recaptcha', 'App\\Validators\\ReCaptcha@validate');
- if ( config('app.env') !== 'local') {
- $url->forceScheme('https');
- }
- }
- }
|