URL::forceSchema PHP Метод

forceSchema() публичный статический Метод

Force the schema for URLs.
public static forceSchema ( string $schema ) : void
$schema string
Результат void
        public static function forceSchema($schema)
        {
            \Illuminate\Routing\UrlGenerator::forceSchema($schema);
        }

Usage Example

Пример #1
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     if ($this->app->environment('production')) {
         \URL::forceSchema('https');
     }
 }
All Usage Examples Of URL::forceSchema