Tuesday, 2 May 2017

Laravel yield attribute

I'm trying to set an attribute using @yield and @section, but how?

I tried to use






and



@section('mainApp','id="myid"')



but it returns id="myid" instead of id="myid"



I know that I can manage it with a default id but I don't like this way, and also what if I need to use a custom attribute?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...