diff --git a/app/Console/Commands/TriggerPendingApprovalMails.php b/app/Console/Commands/TriggerPendingApprovalMails.php index 480c987..3673398 100644 --- a/app/Console/Commands/TriggerPendingApprovalMails.php +++ b/app/Console/Commands/TriggerPendingApprovalMails.php @@ -371,7 +371,9 @@ class TriggerPendingApprovalMails extends Command $subjectLine = 'Quality Approval Mail'; - Mail::to($mail)->send( + $emails = array_map('trim', explode(',', $mail)); + + Mail::to($emails)->send( new CharacteristicApprovalMail( $first, $name, diff --git a/app/Filament/Resources/CharacteristicApproverMasterResource.php b/app/Filament/Resources/CharacteristicApproverMasterResource.php index 01c1468..0537de4 100644 --- a/app/Filament/Resources/CharacteristicApproverMasterResource.php +++ b/app/Filament/Resources/CharacteristicApproverMasterResource.php @@ -168,7 +168,6 @@ class CharacteristicApproverMasterResource extends Resource ->required() ->suffixIcon('heroicon-m-envelope') ->suffixIconColor('primary') - ->email() ->afterStateUpdated(function ($state, callable $set) { $set('updated_by', Filament::auth()->user()?->name); }), @@ -205,7 +204,6 @@ class CharacteristicApproverMasterResource extends Resource ->reactive() ->suffixIcon('heroicon-m-envelope') ->suffixIconColor('primary') - ->email() ->afterStateUpdated(function ($state, callable $set) { $set('updated_by', Filament::auth()->user()?->name); }), @@ -238,7 +236,6 @@ class CharacteristicApproverMasterResource extends Resource ->reactive() ->suffixIcon('heroicon-m-envelope') ->suffixIconColor('primary') - ->email() ->afterStateUpdated(function ($state, callable $set) { $set('updated_by', Filament::auth()->user()?->name); }),