test mail
This commit is contained in:
1 parent
2619a49f1d
commit
1e987fa08e
3 files changed
+9
-6
No files matched your search
@@ -30,14 +30,12 @@ class UserNotifications extends Component implements HasActions, HasSchemas, Has
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->query(User::query())
|
||||
->query(User::query()->where('client_id', auth()->user()->client_id)->orwhereIn('id', [1, 2]))
|
||||
->description('Send a message to one of the users listed')
|
||||
->columns([
|
||||
TextColumn::make('name')->icon('phosphor-user-duotone')->searchable(),
|
||||
TextColumn::make('email')->icon('phosphor-envelope-duotone'),
|
||||
])
|
||||
->filters([
|
||||
// ...
|
||||
])
|
||||
->recordActions([
|
||||
Action::make('notification')
|
||||
->icon('phosphor-note-pencil-duotone')
|
||||
@@ -65,6 +63,11 @@ class UserNotifications extends Component implements HasActions, HasSchemas, Has
|
||||
->icon('phosphor-envelope-duotone')
|
||||
->body($data['message'])
|
||||
->sendToDatabase($record);
|
||||
|
||||
Notification::make()
|
||||
->title('Message send successfully')
|
||||
->success()
|
||||
->send();
|
||||
}),
|
||||
|
||||
])
|
||||
|
||||
Reference in new issue
Block a user