F
Filamentβ€’12mo ago
vitali

Heading and Subheading not displayed

Hi guys, this is my code, I want to customize the page title and add a subtitle: class CategoryResource extends Resource { protected static ?string $model = Category::class; protected static ?string $title = 'Categorie'; protected static ?string $subheading = 'Tutte le categorie'; protected static ?string $navigationIcon = 'heroicon-o-tag'; protected static ?string $navigationGroup = 'Dati'; protected static ?string $navigationLabel = 'Categorie';
No description
Solution:
it was: protected ?string $heading = 'Custom Page Heading'; protected ?string $subheading = 'Custom Page Heading';...
Jump to solution
10 Replies
Sjoerd24
Sjoerd24β€’12mo ago
You have to add this to a page, so in your case the Pages/ListCategories
vitali
vitaliOPβ€’12mo ago
is it possible to add in resource??
vitali
vitaliOPβ€’12mo ago
done but there's an error
No description
Sjoerd24
Sjoerd24β€’12mo ago
maybe on the table add ->subheading('test')? dont know if that works
vitali
vitaliOPβ€’12mo ago
ok thanks found
Solution
vitali
vitaliβ€’12mo ago
it was: protected ?string $heading = 'Custom Page Heading'; protected ?string $subheading = 'Custom Page Heading';
Sjoerd24
Sjoerd24β€’12mo ago
yeah without the static excellent!
vitali
vitaliOPβ€’12mo ago
thanks man πŸ˜„
Dennis Koch
Dennis Kochβ€’12mo ago
Reading errors messages usually helps πŸ˜‰ πŸ˜…
vitali
vitaliOPβ€’12mo ago
for new entries like me in laravel world yes ... πŸ˜„

Did you find this page helpful?