mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 23:19:05 +00:00
35 lines
653 B
PHP
35 lines
653 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use URL;
|
|
|
|
class AppServiceProvider extends ServiceProvider {
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot() {
|
|
// 检测是否强制跳转https
|
|
if(env('REDIRECT_HTTPS', false)){
|
|
URL::forceScheme('https');
|
|
}
|
|
|
|
//\Schema::defaultStringLength(191);
|
|
}
|
|
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register() {
|
|
if($this->app->environment() !== 'production'){
|
|
$this->app->register(IdeHelperServiceProvider::class);
|
|
}
|
|
}
|
|
}
|