Order of Clusters in Navigation

Does anyone know of a way to sort Panel Builder Clusters in the navigation menu is a specific order? Similar to
protected static ?int $navigationSort = 1;
protected static ?int $navigationSort = 1;
in a Resource class.
Solution:
Would you believe it! This works: ``` <?php namespace App\Filament\Clusters;...
Jump to solution
3 Replies
David | Fortune Validator
Try $sort
WiseWill
WiseWillOP2d ago
Unfortunately that's not it;
<?php

namespace App\Filament\Clusters;

use Filament\Clusters\Cluster;

class Settings extends Cluster
{
protected static ?string $navigationIcon = 'heroicon-o-cog-8-tooth';
protected static ?int $sort = 100;
}
<?php

namespace App\Filament\Clusters;

use Filament\Clusters\Cluster;

class Settings extends Cluster
{
protected static ?string $navigationIcon = 'heroicon-o-cog-8-tooth';
protected static ?int $sort = 100;
}
unless you had something else in mind.
Solution
WiseWill
WiseWill2d ago
Would you believe it! This works:
<?php

namespace App\Filament\Clusters;

use Filament\Clusters\Cluster;

class Settings extends Cluster
{
protected static ?string $navigationIcon = 'heroicon-o-cog-8-tooth';
protected static ?int $navigationSort = 1;
}
<?php

namespace App\Filament\Clusters;

use Filament\Clusters\Cluster;

class Settings extends Cluster
{
protected static ?string $navigationIcon = 'heroicon-o-cog-8-tooth';
protected static ?int $navigationSort = 1;
}
Want results from more Discord servers?
Add your server