/** * Bootstrap any application services. * * @return void */ public function boot(UrlGenerator $url) { // if (env('APP_ENV') !== 'local') { $url->forceSchema('https'); } }
/** * Force the schema for URLs. * * @param string $schema * @return void * @static */ public static function forceSchema($schema) { \Illuminate\Routing\UrlGenerator::forceSchema($schema); }