This commit is contained in:
Ryan Scherler
2020-11-25 12:11:15 -08:00
parent 072b9d90be
commit e455d4c482
3 changed files with 2 additions and 3 deletions
-1
View File
@@ -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,
],
],
-1
View File
@@ -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
{
+2 -1
View File
@@ -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();
}