📅  最后修改于: 2022-03-11 14:54:12.200000             🧑  作者: Mango
// 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
@endonce
@endpush
// if anyone has a better method please share it with me :D
// upvote this if it worked please ;)