Skip to content

Commit

Permalink
Hide slug field on index page
Browse files Browse the repository at this point in the history
  • Loading branch information
pktharindu authored Apr 12, 2021
1 parent e563541 commit 309ffe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Nova/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public function fields(Request $request)
->rules('required')
->creationRules('unique:' . config('nova-permissions.table_names.roles', 'roles'))
->updateRules('unique:' . config('nova-permissions.table_names.roles', 'roles') . ',slug,{{resourceId}}')
->sortable(),
->sortable()
->hideFromIndex(),

Checkboxes::make(__('Permissions'), 'permissions')
->withGroups()
Expand Down

0 comments on commit 309ffe1

Please sign in to comment.