Laravel Blade Learning
echo
1. No PHP open tag / close Tag required
2. Laravel Blade support inheritance -Header and Footer
@yield('content')
@extends("master.layout")
@section('content')
@endsection
@parent
3. We put in resource folder
4. We can put php code
5. put data with double curly bracket
6. it convert htmlentities convert
7. without {!! $data !!} without htmlentities
8. we can use php functions {{ date("Y-m-d H:i:s")}}
9. @{{ $data }} for plain text
10. {{ $data or 'Not Available'}}
Conditions
A.
@if (check)
@elseif(check2)
@endif
@if (!check)
B. unless(check)
@for
@endfor
C. @foreach
@endforeach
D. @break
F. @forelse
@empty
@endforelse
@include('abc')
G. @each('div')
h. @push ('css')
@endpush
i. @stack
j. comments {{-- --}}
echo
1. No PHP open tag / close Tag required
2. Laravel Blade support inheritance -Header and Footer
@yield('content')
@extends("master.layout")
@section('content')
@endsection
@parent
3. We put in resource folder
4. We can put php code
5. put data with double curly bracket
6. it convert htmlentities convert
7. without {!! $data !!} without htmlentities
8. we can use php functions {{ date("Y-m-d H:i:s")}}
9. @{{ $data }} for plain text
10. {{ $data or 'Not Available'}}
Conditions
A.
@if (check)
@elseif(check2)
@endif
@if (!check)
B. unless(check)
@for
@endfor
C. @foreach
@endforeach
D. @break
F. @forelse
@empty
@endforelse
@include('abc')
G. @each('div')
h. @push ('css')
@endpush
i. @stack
j. comments {{-- --}}
No comments:
Post a Comment