Running Laravel Pint in PhpStorm
$ August 1, 2022
To get Laravel Pint to automatically reformat your PHP code on save in PhpStorm, configure it as a file watcher to run as an "action on save".
- Turn off PhpStorm's built-in code formatting for PHP.

- Create a new File Watcher for Laravel Pint:

- Use the following file watcher settings:

-
Program:
$ProjectFileDir$/vendor/bin/pint -
Arguments:
$FileRelativePath$ -
Output paths to refresh:
$FileRelativePath$ -
Working directory:
$ProjectFileDir$