php - How to pass variable to @extends blade -


i have variable {{$template}}.. how can including variable @extends. had try this:

@extends({{$template}}) // getting error

i hope, there 1 answer me. thanks.

you mean want pass value $template layout? , getting value of $template?

if want pass variable layout, try doing

@extends('<<your layout name>>', ['template' => $template]) 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -