You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As feature request, we should be able to define "exceptional directories" where no formatting would be applied.
For instance, I would define my resources/views/emails directory.
Example:
This file should not be formatted, otherwise everything will be understood as a code block.
resources/views/emails/order-shipped.blade.php
@component('mail::message')
# Order Shipped
Your order has been shipped!
@component('mail::button', ['url'=>$url])
View Order
@endcomponent@endcomponent
The text was updated successfully, but these errors were encountered:
@hmaesta@granvilla Do you install other blade formatter extension?
Actually this extension only do a little format feature.
In my case, I also install Laravel Blade Formatter, you may try "Format Document With..." choose which you prefer to use in this case.
With Laravel Blade Snippets, the document stay the same. No extra indent
Blade files used for
Mailable
shouldn't be formatted, sinceMarkdown
will understand that the spaces arecode
block.This is even documented in Laravel docs.
As feature request, we should be able to define "exceptional directories" where no formatting would be applied.
For instance, I would define my
resources/views/emails
directory.Example:
This file should not be formatted, otherwise everything will be understood as a code block.
resources/views/emails/order-shipped.blade.php
The text was updated successfully, but these errors were encountered: