F
F
fashionmens2019-09-15 11:22:52
Laravel
fashionmens, 2019-09-15 11:22:52

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

1 answer(s)
K
Konstantin B., 2019-09-15
@Kostik_1993

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 question

Ask a Question

731 491 924 answers to any question