Skip to content

Commit 131246d

Browse files
committed
- Clarity
1 parent 16d46fa commit 131246d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,17 +386,17 @@ public function columns() : array {
386386
->sortable(),
387387
Column::make('Actions')
388388
->components([
389-
Link::make(false)
389+
Link::make(false) // We want to hide the text and just show an icon
390390
->icon('fas fa-pencil-alt')
391391
->class('btn btn-primary btn-sm')
392392
->href(function($model) {
393393
return route('admin.auth.role.edit', $model->id);
394394
})
395395
->hideIf(auth()->user()->cannot('access.roles.edit')),
396-
Link::make(false)
396+
Link::make(false) // We want to hide the text and just show an icon
397397
->icon('fas fa-trash')
398398
->class('btn btn-danger btn-sm')
399-
->setAttribute('data-method', 'delete')
399+
->setAttribute('data-method', 'delete') // Javascript takes over and injects a hidden form
400400
->href(function($model) {
401401
return route('admin.auth.role.destroy', $model->id);
402402
})

0 commit comments

Comments
 (0)