Files
ProxyPanel/app/Providers/AppServiceProvider.php
兔姬桑 a0922521cf 初始化
2020-08-05 03:19:28 +08:00

38 lines
801 B
PHP

<?php
namespace App\Providers;
use Illuminate\Queue\Events\JobFailed;
use Illuminate\Support\Facades\Queue;
use Illuminate\Support\ServiceProvider;
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(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
}
}
}