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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners