Skip to content

Commit

Permalink
chore: remove nestedset
Browse files Browse the repository at this point in the history
  • Loading branch information
saade committed Feb 13, 2024
1 parent 44fd216 commit c90a896
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 128 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"php": "^8.1",
"filament/filament": "^3.0",
"illuminate/contracts": "^10.0",
"kalnoy/nestedset": "^6.0",
"spatie/laravel-package-tools": "^1.15.0",
"staudenmeir/laravel-adjacency-list": "^1.18"
},
Expand Down
13 changes: 1 addition & 12 deletions src/Forms/Components/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ abstract class Component extends Forms\Components\Field
{
use Concerns\HasActions;
use Concerns\HasForm;
use Forms\Components\Concerns\CanBeCollapsed;

protected string $view = 'filament-adjacency-list::builder';

Expand Down Expand Up @@ -110,18 +111,6 @@ public function getMaxDepth(): int
return $this->evaluate($this->maxDepth);
}

public function startCollapsed(bool | Closure $startCollapsed): static
{
$this->startCollapsed = $startCollapsed;

return $this;
}

public function getStartCollapsed(): bool
{
return $this->evaluate($this->startCollapsed);
}

public function getRelativeStatePath(string $path): string
{
return str($path)->after($this->getStatePath())->trim('.')->toString();
Expand Down
115 changes: 0 additions & 115 deletions src/Forms/Components/NestedSet.php

This file was deleted.

0 comments on commit c90a896

Please sign in to comment.