Answer the question
In order to leave comments, you need to log in
How to allow only those variables in the blade file that are passed to the template, but disable php tags and disable calling public class methods?
How to allow only those variables in the .blade file that are passed to the template, but disable <?php tags and disable calling public class methods. For example, to prohibit such a construction {{App\User::all()}}
Answer the question
In order to leave comments, you need to log in
No way. Use Smarty or Quicky based on Smarty, they have these options. I don’t know for sure, maybe Twig also has similar settings
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question