Declare a variável em vista para o loop laravel
@push('scripts')
<script src="/laravel.js"></script>
@endpush
Kalpesh
@push('scripts')
<script src="/laravel.js"></script>
@endpush
<!-- Stored in resources/views/child.blade.php -->
@extends('app')
@section('title', 'About Us')
@section('scripts')
@parent
<script src="{{ url('/js/analytics.js') }}"></script>
@show
@section('content')
<p>This is my body content.</p>
@endsection