feat(setup preprod env and mailing interceptor)
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Listeners\PreprodMailInterceptor;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
use Illuminate\Mail\Events\MessageSending;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
@@ -20,7 +23,8 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
// Disable wrapping for all JSON responses
|
||||
JsonResource::withoutWrapping();
|
||||
|
||||
Event::listen(MessageSending::class, PreprodMailInterceptor::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user