We're a place where coders share, stay up-to-date and grow their careers.
There's now a @once component in Laravel 7.2.x that would be useful for achieving that. So you could do something like this...
@push('scripts') @once <script src="{{ global_asset(mix('/js/example.js')) }}"></script> @endonce @endpush
Nice!
There's now a @once component in Laravel 7.2.x that would be useful for achieving that. So you could do something like this...
Nice!