I’ve been coding Laravel in Spacemacs of late, and I wanted to set it up so that blade templates are loaded using
web-mode
.
Hey presto, the answer is already on stackoverflow.
Put this in the user-config
section of .spacemacs
:
(add-to-list 'auto-mode-alist '("\\.blade.php\\'" . web-mode))