Run Laravel Pint via the Artisan console using the php artisan pint command, with full support for all arguments, flags, and file paths.
- PHP 8.2+
- Laravel 12.0+
- Laravel Pint 1.22+
composer require artengin/laravel-pint-artisan --devRun Pint with any options it supports:
Example:
# Format all files
php artisan pint
# Use specific preset
php artisan pint --preset=laravel
# Format specific directories/files
php artisan pint app src tests
# Combine options
php artisan pint --dirty --preset=psr12 app config
...All arguments and flags are passed directly to the Pint binary. Output with formatting results is displayed.
Laravel Pint Artisan package is open-sourced software licensed under the MIT license.