jeudi 31 mars 2016

Storing @include() in a variable?

Is it possible to store the output of @include('view.name') into a variable?

Something like this:

$var = @include('view.name')
{{$var}}

The reason I want to do that I want to pass @include('view.name') into Blade::directive()

For example:

@blocksection([
        'Title',
        '<p>Descrption</p>,
         @include('view.name'),
])
// HTML 
@endblocksection



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire