mirror of
https://github.com/supanadit/todo.git
synced 2024-11-22 18:26:25 +00:00
32 lines
513 B
PHP
Executable File
32 lines
513 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use App\Providers\URL;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
if (config('app.env') == 'production') {
|
|
URL::forceScheme('https');
|
|
}
|
|
}
|
|
}
|