Answers for "laravel components scripts"

PHP
0

laravel components scripts

//you can write this in your parent component @stack('scripts'), 
//and in your child component you can write like this @push('scripts).

//your child component code will be like this

@push('scripts')
<script src="example.js"></>
@endpush

//it will only push the scripts to the parent component when you load the child component.
Posted by: Guest on October-30-2021

Browse Popular Code Answers by Language