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
Post a Comment