ekvedaras / laravel-query-intellij

💿 Laravel Query Builder integration for PhpStorm
MIT License
47 stars 3 forks source link
database intellij-plugin laravel php phpstorm phpstorm-plugin

Laravel Query

Build Version Downloads

Laravel + DataGrip = ♥️

Demo

This plugin provides database integration for Laravel query builder.

Features

Prerequisites

Connect your database

See https://www.jetbrains.com/help/phpstorm/connecting-to-a-database.html#connect-to-mysql-database for instructions.

Laravel tools

You also need either Laravel Idea plugin (paid) or Laravel IDE helper added to your project and run

php artisan ide-helper:generate
php artisan ide-helper:meta
php artisan ide-helper:models
php artisan ide-helper:eloquent

which will generate some helper files so your IDE could see Eloquent methods.

Laravel Query plugin needs either of those to work otherwise, it cannot understand for which methods to trigger autocompletion.

Future plans

V5 as a complete rewrite to reduce cognitive load, improve readability and maintainability. It is coming soon. Branch already available for PRs and suggestions.

Installation


Plugin based on the IntelliJ Platform Plugin Template.