File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -386,17 +386,17 @@ public function columns() : array {
386
386
->sortable(),
387
387
Column::make('Actions')
388
388
->components([
389
- Link::make(false)
389
+ Link::make(false) // We want to hide the text and just show an icon
390
390
->icon('fas fa-pencil-alt')
391
391
->class('btn btn-primary btn-sm')
392
392
->href(function($model) {
393
393
return route('admin.auth.role.edit', $model->id);
394
394
})
395
395
->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
397
397
->icon('fas fa-trash')
398
398
->class('btn btn-danger btn-sm')
399
- ->setAttribute('data-method', 'delete')
399
+ ->setAttribute('data-method', 'delete') // Javascript takes over and injects a hidden form
400
400
->href(function($model) {
401
401
return route('admin.auth.role.destroy', $model->id);
402
402
})
You can’t perform that action at this time.
0 commit comments