Skip to content

Instantly share code, notes, and snippets.

@risuvoo
Last active February 22, 2025 08:41
Show Gist options
  • Select an option

  • Save risuvoo/e895f7f4f8e76bf56a3de552cecaaf7e to your computer and use it in GitHub Desktop.

Select an option

Save risuvoo/e895f7f4f8e76bf56a3de552cecaaf7e to your computer and use it in GitHub Desktop.
Prettier Setup Lavavel
// Install this Package Link: https://www.npmjs.com/package/prettier-plugin-blade
npm install prettier-plugin-blade@^2
// create prettierrc file and add this code
{
"plugins": ["prettier-plugin-blade"],
"printWidth": 200,
"overrides": [
{
"files": ["*.blade.php"],
"options": {
"parser": "blade"
}
}
]
}
// Optional: For VS Code Settings
"[blade]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment