mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
cleanup
This commit is contained in:
@@ -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,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user