2025-10-22 17:09:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
2026-04-10 11:47:04 +02:00
|
|
|
use App\Listeners\PreprodMailInterceptor;
|
2026-04-09 09:09:48 +02:00
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
2026-04-10 11:47:04 +02:00
|
|
|
use Illuminate\Mail\Events\MessageSending;
|
|
|
|
|
use Illuminate\Support\Facades\Event;
|
2025-10-22 17:09:48 +02:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Register any application services.
|
|
|
|
|
*/
|
|
|
|
|
public function register(): void
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Bootstrap any application services.
|
|
|
|
|
*/
|
|
|
|
|
public function boot(): void
|
|
|
|
|
{
|
2026-04-09 09:09:48 +02:00
|
|
|
JsonResource::withoutWrapping();
|
2026-04-10 11:47:04 +02:00
|
|
|
|
|
|
|
|
Event::listen(MessageSending::class, PreprodMailInterceptor::class);
|
2025-10-22 17:09:48 +02:00
|
|
|
}
|
|
|
|
|
}
|