Skip to content

Instantly share code, notes, and snippets.

@chris-bkjg
chris-bkjg / laravel-pint-with-sail-phpstorm.md
Created August 21, 2024 23:28 — forked from WalrusSoup/laravel-pint-with-sail-phpstorm.md
Run laravel pint from Phpstorm with WSL on save

Saving this so I dont forget later.

Run Laravel Pint from Phpstorm with WSL on save with Laravel Sail

  1. create custom file watcher
  2. For tool to Run on Changes add the full path to vendor/bin/sail via WSL like so \\wsl$\Ubuntu\home\ozen\projects-sail\MYPROJECT\vendor\bin\sail
  3. Arguments bin pint $/FileRelativePath$
  4. Output paths to refresh $FilePath$
  5. Working Directory $ProjectFileDir$