empiler une fois Laravel

// Laravel v7.25 and above :D

@stack('scripts') // In master blade
  
@push('scripts')
  @once  // This is the keyword thats resposible for rendering the tag once per partial/reuseable component
  	<script>
  		alert('I am only imported once');
  	</script>
  @endonce
@endpush
      
// if anyone has a better method please share it with me :D
// upvote this if it worked please ;)
Cautious Curlew