I want to use the blade directive in my controller, in this case I've created an email template custom where email messages retrieved from a database and an email message that I could write my own tags [app_name], [button url=my url]Text[/button], etc
.
When I write [app_name]
it will be 'Site Name' and also when I write [button url=my url]Text[/button]
it will call @component('mail::button', ['url'=>'my url'])Text@endcomponent
.
So, can I use laravel blade in my controller?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2uFVwGg
via IFTTT
Aucun commentaire:
Enregistrer un commentaire