public function created(IdentityConflict $identityConflict): void
{
$recipient = User::role('admin')->first();
if ($recipient) {
$notification = Notification::make()
->title('Saved successfully')
->actions([
Action::make('view')
->button()
->url(
fn () => IdentityConflictResource::getUrl('view', [
'record' => $identityConflict->id,
]),
shouldOpenInNewTab: true
),
])
->sendToDatabase($recipient);
}...
public function created(IdentityConflict $identityConflict): void
{
$recipient = User::role('admin')->first();
if ($recipient) {
$notification = Notification::make()
->title('Saved successfully')
->actions([
Action::make('view')
->button()
->url(
fn () => IdentityConflictResource::getUrl('view', [
'record' => $identityConflict->id,
]),
shouldOpenInNewTab: true
),
])
->sendToDatabase($recipient);
}...