DEV Community

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

Posted on

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

Latest comments (0)