PHPStormのLaravel用最強プラグインLaravel ideaの紹介

# Laravel idea とは
愛用しているLaravelでの開発用の強力補完プラグインです(有料)
20万ダウンロードされています。

https://plugins.jetbrains.com/plugin/13441-laravel-idea

phpstorm単体でも補完が強いんですが完全体になれます。

どんな補完が効くのかつまみつまみ紹介します。

# 機能一覧

## コード生成
ショートカットで生成したいコードタイプを選択
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/2b62e3e1-15ea-c337-3bbc-19e2377cdd46.png)

## Eloquent

### カラム補完
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/66872a79-a483-316e-7ad8-618c6a1e6ef3.png)

#### リレーション先
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/06f7f57a-916f-7bbd-5700-59342284ec21.png)

### with時のリレーションチェーン
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/b51a730f-ca9e-7f1c-28cd-56962cd336fe.png)

### モデル内のフィールド
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/90704f14-c1ff-f0ac-99c0-6c02b98aa27c.png)



## ルーティング関連補完

### コントローラー
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/dd7d9e94-9b89-1f36-edf5-aa13433c5c11.png)

### コントローラーメソッド
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/089420b7-fa81-9779-6513-d69469a3c34d.png)

### ルート名の補完
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/31b2cd58-03f6-1792-5a2d-e8ee501eedb7.png)

### Groupやnamespace補完
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/1edca077-350e-2cab-312f-0c6f4dc90059.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/77903c55-6168-cc5f-e5e7-b52a54b0c2c5.png)


### methodジャンプ

![route_navigation.gif](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/7d38e957-61c6-8bef-4398-f564b800c49d.gif)


## バリデーション補完

### ルール

#### パターン1
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/2c288673-72e3-83f6-7372-9db78c30beb3.png)

#### パターン2
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/92179edd-4170-784a-fbc3-1eccfcdad594.png)

## リクエスト補完
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/4b6aa724-627f-74f3-e167-0d10d5344913.png)



## Blade補完

### return view()

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/5930f652-4abe-bace-dfb5-69dbdf9c2b92.png)

### 継承
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/716ae480-8ff6-aae8-3c6c-21ef3fc59fc5.png)

### セクション
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/64eb9198-248e-5443-3dbb-0042627059aa.png)

### push
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/465ffa0a-0b3b-bcc8-03c3-1c15c49eda7a.png)

### bladeComponents

#### コンポーネントタグ名補完
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/aedc9ccf-aee7-e0a5-ce20-3d8595ac4bee.png)

#### パラメータ補完
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/882f797b-ed45-847a-e9ca-5fa8d0a5383a.png)

### コンポーネントに使われているファイルにジャンプ
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/ea911a7d-b7ae-fdfb-80b7-7da15f7006b7.png)


### 宣言に移動
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/3d26e316-35ea-2bcc-872d-5bf0b249a9d6.png)




## Livewire補完

### <span>@</span>livewireディレクティブ

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/e7d789fa-213e-45e9-667c-2a3a9e04cfdb.png)

### Livewireタグ

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/c6ea6357-d6e3-7665-23e9-4c80ba0f8628.png)

#### Livewireタグの属性

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/eec568e6-ed02-a219-6671-770656df7278.png)

## Livewire固有の属性、パラメータ、メソッド
![livewire_wire_parameter.gif](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/282328/8cdb4bb5-4a1f-284e-5345-99a2950452e4.gif)