Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

declare variable in view for loop laravel

<!-- 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
Source by learn2torials.com #
 
PREVIOUS NEXT
Tagged: #declare #variable #view #loop #laravel
ADD COMMENT
Topic
Name
6+3 =