[09/10] Laravel Travel API: Laravel Pint and Larastan

preview_player
Показать описание
We continue our course about Laravel Travel API. Today we will use Laravel Pint for code styling and Larastan for static analysis.

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

Good points. I tend to drop in an out of using code cleaning. It definitely helps with css and html parts to lint them. For longer projects tests and improvements help here too to make more readable and avoid some errors.

Also the biggest thing after your team gets consistent on the setup it stops some pointless pr and work conversation on the right way something looks in code not really function.

TristanBailey
Автор

If you are using the new way of defining custom model properties (using the attribute class), the method has to be protected. This might solve the property undefined for the number_of_nights issue

AbdulKudusIssah
Автор

larastan is not working for laravel 11 project?

shamjamous
Автор

/**
* @mixin
*/
works for some and not for others : for example resource i have four files and two generate erro and another two success

juansierracastro