Saturday, March 11, 2017

Laravel 5.4 render parent view before child view

Is it possible to force laravel to execute the parent view then the child view ? I use a master view with some view composers to create a menu and set some variables, then in my sitemap subview, because the master view is computed after I end up having my menu not created yet.

@extends('layout.master')


@section('content')
    
@endsection

Maybe I missed some possibility here.



via Mushr00m

Advertisement