->withExceptions(function (Exceptions $exceptions) {
$exceptions->render(function (\App\Exceptions\FilamentNotificationException $e, $request) {
\Filament\Notifications\Notification::make()
->title('Ошибка')
->body($e->getMessage())
->danger()
->send();
return response()->json(['success' => true, 'message' => $e->getMessage()], 200);
});
})
->withExceptions(function (Exceptions $exceptions) {
$exceptions->render(function (\App\Exceptions\FilamentNotificationException $e, $request) {
\Filament\Notifications\Notification::make()
->title('Ошибка')
->body($e->getMessage())
->danger()
->send();
return response()->json(['success' => true, 'message' => $e->getMessage()], 200);
});
})