/jetbrains-laravel-make-integration

🛠 A set of integration points that connect your Laravel application to PhpStorm

Primary LanguageKotlin

Build Version Downloads Sponsors

Make for Laravel

"New File" menu with Laravel group provided by this plugin

Make for Laravel connects your Laravel application to PhpStorm:

  • "File > New"-menu entries for artisan make:* commands. Generate Laravel components the way you also would create new PHP classes. Includes handy features like pre-filling namespaces based on the file hierarchy and autocompletion for command line options, such as artisan make:controller --api.
  • Laravel tool window. View all available routes and commands at a glance. Includes the usual Jetbrains goodies such as search-as-you-type, go to definition and more.
  • Laravel Sail Autoconfiguration. Debugging, running tests and npm scripts all work magically when developing locally, but quickly falls apart when using containers. Sail Autoconfiguration teaches PHPStorm to use the containerized versions instead, so everything just works again.
  • Gutter icons highlighting route action. Are you struggling with large controllers and don't know which methods are actual endpoints? Make for Laravel annotates them using an icon, which also displays the mapped URL, HTTP verb and additional Middleware.
  • Database Autoconfiguration Automatically add and update the default database used by your Laravel application to the Database tool window.

For additional details visit the project on GitHub.

Installation

  • Using IDE built-in plugin system:

    Preferences > Plugins > Marketplace > Search for "Make for Laravel" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Preferences > Plugins > ⚙️ > Install plugin from disk.... Select the downloaded zip-file and hit "apply".

    Note: When a new version of the plugin is available, your IDE will notify you about it regardless of how you did install it. So even when you install an update from disk once, you will still receive future updates through automated updates.

Usage notes

This does only work if you have the Laravel project open, the root of your project is the root of your Laravel folder and contains the artisan binary! Subfolder support may be added in a future version.

Feature requests

If you have an idea for improving this plugin, first take a look at the existing feature requests and then submit an issue through Github.