diff --git a/src/QuickCreatePlugin.php b/src/QuickCreatePlugin.php index 9b5e8fe..98b2291 100644 --- a/src/QuickCreatePlugin.php +++ b/src/QuickCreatePlugin.php @@ -96,7 +96,7 @@ public function getResources(): array 'action_name' => $actionName, 'action' => ! $resource->hasPage('create') ? 'mountAction(\'' . $actionName . '\')' : null, 'url' => $resource->hasPage('create') ? $resource::getUrl('create') : null, - 'navigation' => $resource->getNavigationSort() + 'navigation' => $resource->getNavigationSort(), ]; } @@ -156,10 +156,10 @@ public function sort(bool | Closure $condition = true): static public function sortBy(string | Closure $sortBy = 'label'): static { - if(!in_array($sortBy, ['label','navigation'])){ + if (! in_array($sortBy, ['label', 'navigation'])) { $sortBy = 'label'; } - + $this->sortBy = $sortBy; return $this;