$user = User::find(1);$notification = Notification::make() ->title('Test 123') ->success() ->sendToDatabase($user) ->broadcast($user);
TextColumn::make('my_field') ->label('My label') ->formatSateUsingLabelPrefix();
Column::macro('formatSateUsingLabelPrefix', function() { return $this->formatStateUsing(function(Column $column, $state) { return $column->getLabel() . ': ' . $state; });});
Action::make('deleteLogActivity') ->label('Delete') ->color('danger') ->visible(fn() => $this->record['id'] != null) ->requiresConfirmation() ->action(function () { // do some stuff }),
afterStateUpdated