He that will do his work well must first sharpen his tools. If you want to develop projects quickly, you must choose the right development tool for you. This is mainly about PhpStorm’s support for Laravel.

Laravel Composer support

Ctrl + Alt + S Search for Composer





After setting this, you can easily install and update the Composer package in the editor. Right-click on the project and choose Composer >Add Dependency









Command Line Tool Support

  • Support the composer command:









  • Support the artisan command: Select Tool Based On Symfony Console













  • Using the command





On the Command line Tools console, execute the composer command: c require





Run the artisan command artisan app:name DXK on the Command Line Tools console





Laravel Plugin

CTRL + Alt + s search plugins









Restart phpStorm to apply the Laravel Plugin to the current project





Then you’ll write code that provides controllers,views, routes, Configuration, Translations, etc.

Laravel IDE Helper

Sometimes you will find that Route:: is not prompted or auto-complete, so we need to install Laravel IDE Helper project address: github.com/barryvdh/la… Install using composer command, composer require barryvdh/ laravel-IDE-Helper. You can also install composer using the PhpStorm interface.





After installation you need to register Laravel IDE Helper as a service in your application. Modify the app/config/app. PHP add Barryvdh \ LaravelIdeHelper \ IdeHelperServiceProvider: : class, under the element of will. Execute the command

php artisan clear-compiled
php artisan ide-helper:generate
php artisan optimizeCopy the code

You can also add a command in the composer. Json post-update-cmd to ensure that the helper is updated every commit, as follows:





Please refer to the official manual: more confluence.jetbrains.com/display/Php… There’s unit testing, database support, debugging, Live Templates, and more

The resources

  • Confluence.jetbrains.com/display/Php…
  • Github.com/barryvdh/la…