jeudi 17 mars 2016

Store SMS template in database and render it later

I need to store SMS template in database. Something like Hello, {{ $userName }}.

Apparently it'd be a good solution to use blade templates here. However how can I retrieve sms template from database and compile it with some variables? The same way I do it with views when rendering blade templates but instead render it from database?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire