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';
Solution:Jump to solution
it was:
protected ?string $heading = 'Custom Page Heading';
protected ?string $subheading = 'Custom Page Heading';...
10 Replies
You have to add this to a page, so in your case the Pages/ListCategories
is it possible to add in resource??
done but there's an error
maybe on the table add ->subheading('test')? dont know if that works
ok thanks found
Solution
it was:
protected ?string $heading = 'Custom Page Heading';
protected ?string $subheading = 'Custom Page Heading';
yeah without the static
excellent!
thanks man π
Reading errors messages usually helps π π
for new entries like me in laravel world yes ... π