All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 43s
31 lines
600 B
PHP
31 lines
600 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Listeners\LogSuccessfulLogin;
|
|
use Illuminate\Auth\Events\Login;
|
|
use Illuminate\Support\Facades\Event;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
if (str_starts_with(config('app.url'), 'https://')) {
|
|
\Illuminate\Support\Facades\URL::forceScheme('https');
|
|
}
|
|
}
|
|
}
|
|
|