arrilot / laravel-widgets

Widgets for Laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

javascript support

slamghost opened this issue · comments

I need some javascript in my widgets. What is the best way to render the widget including custom js ?

regards

If you use standart widgets (not async and not reloadable) you can use blade's @section to inject javascript to the end of a body

not working, standard widgets, but neither @section nor @push are working

This may be the solution for you I have tried and succeeded: https://github.com/botble/laravel-assets