F
Filament14mo ago
Roberto

how do i put my custom script code

I have a custom script code like this <script></script> i want to place that on every page of admin panel i'm using renderHook. this is an example. please help me fix this ->renderHook( 'panels::body.end', fn (): string => 'how do i put my script code here?' )
Solution:
use a custome view ``` ->renderHook( 'panels::body.start',...
Jump to solution
2 Replies
Solution
Lara Zeus
Lara Zeus14mo ago
use a custome view
->renderHook(
'panels::body.start',
fn (): View => view('js-code'))
->renderHook(
'panels::body.start',
fn (): View => view('js-code'))
in js-code.blade.php:
<script></script>
<script></script>
Roberto
RobertoOP14mo ago
ah got it thank you. will try that
Want results from more Discord servers?
Add your server