Answer the question
In order to leave comments, you need to log in
How to correctly pass data to layouts?
Good evening, tell me correctly, I pass data to layouts (all pages). Now I do it through the AppServiceProvider, in the same way:
view()->share(['com_news'=> $com_news,'count_category'=>$count_category,'filter_name'=>$filter_name]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question