F
Filamentβ€’11mo 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β€’11mo ago
You have to add this to a page, so in your case the Pages/ListCategories
vitali
vitaliOPβ€’11mo ago
is it possible to add in resource??
vitali
vitaliOPβ€’11mo ago
done but there's an error
No description
Sjoerd24
Sjoerd24β€’11mo ago
maybe on the table add ->subheading('test')? dont know if that works
vitali
vitaliOPβ€’11mo ago
ok thanks found
Solution
vitali
vitaliβ€’11mo ago
it was: protected ?string $heading = 'Custom Page Heading'; protected ?string $subheading = 'Custom Page Heading';
Sjoerd24
Sjoerd24β€’11mo ago
yeah without the static excellent!
vitali
vitaliOPβ€’11mo ago
thanks man πŸ˜„
Dennis Koch
Dennis Kochβ€’11mo ago
Reading errors messages usually helps πŸ˜‰ πŸ˜…
vitali
vitaliOPβ€’11mo ago
for new entries like me in laravel world yes ... πŸ˜„
Want results from more Discord servers?
Add your server