PhpStorm - Add Laravel Autocompletion
Ctrl + Alt + Sto bring up the settings modal.
Go to Plugins (1), click on the Marketplace tab (2), search for laravel (3), then install the Laravel IDE plugin (4).
Restart the IDE when prompted for the changes to apply.
From within your Laravel project, run the following command to install the Laravel IDE helper package.
composer require --dev barryvdh/laravel-ide-helper
- Now that you have the package, use it to generate the relevant descriptor files that PhpStorm will read in order to know how to provide autocomplete functionality:
php artisan ide-helper:generate php artisan ide-helper:meta
- You should now have autocomplete support. The screenshot below shows this with autocompletion being made available on the
First published: 7th March 2022