Excluding Directives from Class String Emulation | Formatter Configuration and Usage
By default, the Blade formatter will not apply class string emulation feature to the following list of directives: if, unless, elseif, for, forelse, foreach If you'd like to modify this list you may add a classStrings configuration object to your...