diff --git a/config/filament.php b/config/filament.php index 1145dc163e..1b33ccc9f8 100644 --- a/config/filament.php +++ b/config/filament.php @@ -85,7 +85,6 @@ return [ 'label' => 'Dashboard', 'icon' => 'heroicon-o-home', // optional icon name (Blade UI Kit @link https://github.com/blade-ui-kit/blade-heroicons) 'sort' => -9999, // sort order used by the navigation - 'hideFromNav' => false, ], ], diff --git a/src/FilamentResource.php b/src/FilamentResource.php index 46fc79efa5..b981ca4900 100644 --- a/src/FilamentResource.php +++ b/src/FilamentResource.php @@ -8,7 +8,6 @@ abstract class FilamentResource implements Resource { public $icon = 'heroicon-o-document-text'; public $sort = 0; - public $hideFromNav = false; public function actions(): array { diff --git a/src/View/Components/Nav.php b/src/View/Components/Nav.php index f635417c04..6479302007 100644 --- a/src/View/Components/Nav.php +++ b/src/View/Components/Nav.php @@ -3,6 +3,7 @@ namespace Filament\View\Components; use Illuminate\View\Component; +use Filament\Helpers\Navigation; class Nav extends Component { @@ -17,7 +18,7 @@ class Nav extends Component */ public function __construct() { - $this->nav = app('Filament\Helpers\Navigation')->items() + $this->nav = app(Navigation::class)->items() ->sortBy('sort') ->all(); }