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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners