nikocraft
2 years ago
146
9
Laravel

is it possible to run blade directives which are stored in the content from database?

Posted 2 years ago by nikocraft

Let's say I have a column in table called content, and I render this column in the blade template.

This column can hold stuff like this:

some content text here, some content text here, some content text here...

@my_blade_directive

some content text here, some content text here, some content text here...

Is it possible to get Laravel to act on this blade directive that is output directly from the database?

Please sign in or create an account to participate in this conversation.