What is the replacement for Filament::pushMeta

I am using v3 and i need use pushMeta but i dont know what is the replacment of it in v3
Solution:
```php FilamentView::registerRenderHook( 'panels::head.end', fn (): View => view('components.favicon'), );...
Jump to solution
4 Replies
Solution
Mansoor Khan
Mansoor Khan16mo ago
FilamentView::registerRenderHook(
'panels::head.end',
fn (): View => view('components.favicon'),
);
FilamentView::registerRenderHook(
'panels::head.end',
fn (): View => view('components.favicon'),
);
awcodes
awcodes16mo ago
There’s also $panel->favicon() Not sure why you need a view for the favicon though.
Mansoor Khan
Mansoor KhanOP16mo ago
I am using a generated favicons for each device. Thanks for the response 🙂
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
awcodes
awcodes16mo ago
Gotcha. Makes sense in that case. You can also use $panel->renderHook(). Just so you know. 🙂
Want results from more Discord servers?
Add your server