الصفحات · Laravilt
Row Actions
Add per-record actions to each table row.
Row actions are passed to recordActions(). Closures receive the row's $record.
php
In a resource, View and Edit resolve their URLs automatically, and a row click opens the first action's URL. Change that with $table->recordUrl(fn ($record) => ...) or $table->disableRecordUrlFromFirstAction().
Custom row action
php
Name the closure parameter $record for visibility checks that need the row.
Next
- Action types: View, Edit, Delete, Replicate, and more
- Confirmation and Forms