Creating WordPress like shortcode in laravel blade

I have a mail template (in laravel blade) that is need to be dynamic (so it should be saved in database i think). This is the registration_complete.blade.php:


And the $dynamic_content_from_database value came from the WYSIWYG i used.This is the management i worked for :
enter image description here

I need to find a way that admin user can manage the content of the template with variable inside or shortcode. Just like in WordPress they used short code to put the dynamic value in the content. I tried echoing the $dynamic_content_from_database. But it was just echoing the [username] as string. I tried to search trough web but i get no luck. By the way, i used laravel 4.2.This form is sent after successful registration.

Source: shortcode

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.