If you are using https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction, then you might have the situation to add a standard Actions column. First of all, you need to extend the Column class, name it as ActionColumn: view = $view; return $this; } public function getView(): string { return property_exists($this, 'view')? $this->view : 'livewire.datatable-actions'; } public function getContents(Model $row) { return view($this->getView()) ->withColumn($this) ->withRow($row); }} Then add the resources/views/livewire/datatable-actions.blade.php: @can('view', $row) getResourceUrl('show')}}"> @endcan @can('update', $row) uuid }}')" @else href="{{ $row->getResourceUrl('edit')}}" @endif> @endcan @can('delete', $row) uuid }}')"> @endcan

* * @return array */ public function columns(): array { return [ Column::make('Name', 'name') ->sortable(), Column::make('Email', 'email') ->sortable(), Column::make('Created at', 'created_at') ->sortable(), Column::make('Updated at', 'updated_at') ->sortable(), ActionColumn::make('Actions', 'uuid'), ]; }}
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners