coolify/app/Providers/AppServiceProvider.php

39 lines
920 B
PHP
Raw Normal View History

2023-03-17 14:33:48 +00:00
<?php
namespace App\Providers;
2023-05-03 06:24:34 +00:00
use App\Jobs\CoolifyTask;
2023-05-26 10:31:29 +00:00
use App\Models\InstanceSettings;
2023-03-30 07:47:04 +00:00
use Illuminate\Queue\Events\JobProcessed;
use Illuminate\Support\Facades\Queue;
2023-05-26 10:31:29 +00:00
use Illuminate\Support\Facades\URL;
2023-03-17 14:33:48 +00:00
use Illuminate\Support\ServiceProvider;
2023-05-26 10:31:29 +00:00
use Illuminate\Support\Str;
2023-03-17 14:33:48 +00:00
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
2023-05-26 12:05:58 +00:00
// if ($this->app->environment('production')) {
// try {
// $settings = InstanceSettings::first();
// if (Str::startsWith($settings->fqdn, 'https')) {
// URL::forceScheme('https');
// }
// } catch (\Exception $e) {
// // do nothing
// }
// }
2023-03-17 14:33:48 +00:00
}
}