DEV Community

Cover image for Laravel package for every project
Ariel Mejia
Ariel Mejia

Posted on

5

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
Enter fullscreen mode Exit fullscreen mode

Laravel Debugbar

composer require barryvdh/laravel-debugbar --dev
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Laravel Query Builder

composer require spatie/laravel-query-builder
Enter fullscreen mode Exit fullscreen mode

PHP Code Standards Fixer

$ composer global require friendsofphp/php-cs-fixer
vendor/bin/php-cs-fixer fix
Enter fullscreen mode Exit fullscreen mode

PHP Insights

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

Ray

composer require spatie/laravel-ray --dev
php artisan ray:publish-config
Enter fullscreen mode Exit fullscreen mode

Laravel Macro IDE

Add the package as a dev dependency

"tutorigo/laravel-ide-macros": "*"
Enter fullscreen mode Exit fullscreen mode

On terminal

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

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

Quickstart image

Django MongoDB Backend Quickstart! A Step-by-Step Tutorial

Get up and running with the new Django MongoDB Backend Python library! This tutorial covers creating a Django application, connecting it to MongoDB Atlas, performing CRUD operations, and configuring the Django admin for MongoDB.

Watch full video →

Top comments (0)

Jetbrains image

Is Your CI/CD Server a Prime Target for Attack?

57% of organizations have suffered from a security incident related to DevOps toolchain exposures. It makes sense—CI/CD servers have access to source code, a highly valuable asset. Is yours secure? Check out nine practical tips to protect your CI/CD.

Learn more

AWS GenAI LIVE! | May 14, 2025

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️