samedi 2 juillet 2016

if several blade file extend the same content, how does blade know which to choose?

Sorry for the newbie question, but I'm confused in how blade knows what content to yield...

Say I have one index.blade.html file with <body> @yield('content') </body> but I have several files that all have:

@extends('index')
@section('content')
content
@endsection

If I have this setup in 3 different files that extend the index file, how does blade know which to choose?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire