Laravel Livewire : @push not working fix @push not working fix

when we are using @push('scripts') in laravel livewire components blade file.


@push('scripts')
<scripts>
 // Your JS here.
</scripts>
@endpush 

Then following lines need to be added in layout file app.blade.php for @push('scripts') to work.

Add these lines in layout file "app.blade.php"

@stack('scripts')

and

Livewire Component Library
@stack('styles')

If you are looking for Reusable Livewire Components checkout LivewireDemos.

Host Laravel Application on DigitalOcean

Use coupon 5balloons on this Cloudways Affiliate URL to get special discount.

Site Footer