Installing Laravel Pint0:00
Since readability is so important to me, I want to install Laravel Pint, a code-style fixer, into our project. The website says, Laravel Pint is an opinionated php code-style fixer for minimalists. So for me, the most important aspect here is consistency. When our code always uses the same code-style rules, it gets way easier to read it and you don't have to think about it yourself when you write it. Because the code-style fixer will fix it for you afterwards. Let's install it as a dev-dependency. And when that's done, we can already run it directly here. And as you can see, it has fixed some of our files.
Running Pint and CI0:37
And when that's done, we can already run it directly here. And as you can see, it has fixed some of our files. Since it is an opinionated project, it follows the Laravel style rules. And I'm fine with that, because again, consistency is your most important and it's very easy to use. So of course, now good would also be to create a GitHub action to run Laravel Pint whenever you deploy your code, or you can run it locally before every push or with a script. But this is a little bit out of scope for this course. For now, I'm happy that Laravel Pint provided consistency to our code-styles, and I'm going to run it from time to time in this course.
For now, I'm happy that Laravel Pint provided consistency to our code-styles, and I'm going to run it from time to time in this course.
