Monday, April 3, 2017

Laravel TwigBridge in sandbox mode?

I want to use untrusted views "user will be generating the template", so I don't want to use blade to protect the app from user generated template

From what I understand Twig has Sandbox mode to only allow specific things to be accessed. like a separate scope

How do I enable sandbox mode in TwigBridge ?

and is there an alternate solution in blade if the template is generated by user ?



via SirNarsh

Advertisement