Source: juststeveking.uk

Configuring Laravel Pint
Laravel Pint is the hot new thing from the Laravel team. An excellent wrapper around PHP CS Fixer that is my go-to code standards tool.

By default, it will follow the laravel standard out of the box, a custom standard by the Laravel team.

I am going to walk you through my personal Laravel Pint configuration and explain what and why I choose these settings.

Anywhere you are using implicit variables in your code, it will make them explicit like the following: $name = 'Steve'; $implicit = "Hello, $name"; $explicit = "Hello {$name}"; Final Class
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners