laravel-shortcodes icon indicating copy to clipboard operation
laravel-shortcodes copied to clipboard

I need way to handle duplicate include ja css

Open vahidalvandi opened this issue 4 years ago • 1 comments

I have galley image and i will use laravel shortcodes to append it in content . I have one problem for handle css or js . Because in shortcode i use push blade js or css . If i use multi shortcode it alway push multiply in footer or js . Do you can help me how i can use multi shortcode and for all just push one time ?

vahidalvandi avatar Jun 22 '20 20:06 vahidalvandi

You can use @once directive to only push one https://laravel.com/docs/9.x/blade#the-once-directive

I am curious how can you use @push in shortcode?

phuclh avatar May 07 '22 05:05 phuclh