Laravel package for every project

Here a list of packages that I use/suggest for every Laravel project:

Laravel Ide Helper

composer require --dev barryvdh/laravel-ide-helper

Laravel Debugbar

composer require barryvdh/laravel-debugbar --dev

Laravel Jetstream (Teams feature is very useful but not mandatory for all the projects)

composer require laravel/jetstream
php artisan jetstream:install inertia --teams
npm install
npm run dev
php artisan migrate

Laravel Query Builder

composer require spatie/laravel-query-builder

PHP Code Standards Fixer

$ composer global require friendsofphp/php-cs-fixer
vendor/bin/php-cs-fixer fix

PHP Insights

composer require nunomaduro/phpinsights --dev
php artisan vendor:publish --provider="NunoMaduro\PhpInsights\Application\Adapters\Laravel\InsightsServiceProvider"
php artisan insights

Ray

composer require spatie/laravel-ray --dev
php artisan ray:publish-config

Laravel Macro IDE

Add the package as a dev dependency

"tutorigo/laravel-ide-macros": "*"

On terminal

php artisan vendor:publish --provider="Tutorigo\LaravelMacroHelper\IdeMacrosServiceProvider"
php artisan ide-helper:macros

Those are the most useful packages to work on almost every project.

If you like to use PHPInsights or PHP-CS-Fixer there is a reading list about "Laravel profesional setup" that would guide you to customize this packages behavior with a lot of detail.

Thanks for reading

27