Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
karandatwani92 committed Jun 28, 2023
1 parent bb627a7 commit 651b2e0
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion 6.x/crud-columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,27 @@ The checklist column will output its connected entity. Used for relationships li
<a name="checklist_dependency"></a>
### checklist_dependency

// TODO
Show connected items selected via checklist_dependency field. It's definition is totally similar to the [checklist_dependency *field type*](/docs/{{version}}/crud-fields#checklist_dependency).

```php
[
'label' => 'User Role Permissions',
'type' => 'checklist_dependency',
'name' => 'roles,permissions',
'subfields' => [
'primary' => [
'name' => 'roles', // the method that defines the relationship in your Model
'entity' => 'roles', // the method that defines the relationship in your Model
'attribute' => 'name', // foreign key attribute that is shown to user
],
'secondary' => [
'name' => 'permissions', // the method that defines the relationship in your Model
'entity' => 'permissions', // the method that defines the relationship in your Model
'attribute' => 'name', // foreign key attribute that is shown to user
],
],
]
```

<hr>

Expand Down

0 comments on commit 651b2e0

Please sign in to comment.