Ekapp/skolehjem/app/Providers/AppServiceProvider.php

32 lines
552 B
PHP
Raw Normal View History

2020-06-08 08:04:45 +00:00
<?php
namespace App\Providers;
2020-11-30 14:14:11 +00:00
use Illuminate\Support\Facades\Schema;
2020-06-08 08:04:45 +00:00
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()
{
2020-11-30 14:14:11 +00:00
Schema::defaultStringLength(191);
2020-08-10 10:44:26 +00:00
if(env('HTTPS_ONLY') == true)
url()->forceScheme('https');
2020-06-08 08:04:45 +00:00
}
}