Home » Php » How to parse laravel email templates from database excluding the php methods?

How to parse laravel email templates from database excluding the php methods?

Posted by: admin February 23, 2020 Leave a comment

Questions:

I want to add an email template system, where customers will be able to add different email templates and that will be saved in database. So, security issues should be handled. I don’t want any php code there for security issue.

If I use the laravel blade template, is it possible to add some restrictions to exclude the php execution?

I need only some variables, if/else conditions and foreach loop in the parser.

How to&Answers: