32 lines
656 B
PHP
32 lines
656 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\Facades\URL;
|
|
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(config('app.env') === 'production') {
|
|
URL::forceScheme('https');
|
|
}
|
|
|
|
// \Event::listen('Illuminate\Database\Events\QueryExecuted', function ($query) {
|
|
// dump([ $query->sql, $query->bindings, $query->time]);
|
|
// });
|
|
}
|
|
}
|