├── LICENSE ├── README.md ├── images ├── annotations.png ├── cache-demo.png ├── cookie-demo.png ├── form-demo.png ├── helpers-demo.png ├── input-demo.png ├── input-file-demo.png ├── laravel-blade-screenshot.png ├── redirect-demo.png ├── request-demo.png ├── response-demo.png ├── routes-demo.png ├── routes-enum-demo.png ├── schema-demo.png ├── session-demo.png ├── table-demo.png └── view-demo.png └── templates ├── Laravel_Blade.xml ├── Laravel_Cache.xml ├── Laravel_Form.xml ├── Laravel_Helpers.xml ├── Laravel_Requests_and_Input.xml ├── Laravel_Routes.xml ├── Laravel_Schema.xml ├── Laravel_Session.xml └── Laravel_Views_and_Responses.xml /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### :warning: `This repository is no longer maintained.` 2 | 3 | I no longer use this repository and do not maintain it anymore. 4 | 5 | My recommendation is to use [Laravel IDE Helper](https://github.com/barryvdh/laravel-ide-helper), which is a much more robust solution for autocompletion and static checking. 6 | 7 | ## Laravel Live Templates for PhpStorm ## 8 | 9 | How to: 10 | 11 | 1) Go to *Preferences | Tools | Settings Repository* 12 | 13 | 2) Add Read-only Source https://github.com/koomai/phpstorm-laravel-live-templates 14 | 15 | 3) Restart PhpStorm. 16 | 17 | 4) To see all templates, go to *Preferences | Live Templates* and expand the Template Group. 18 | 19 | 20 | It's hard to remember shortcuts when there are a large number of options. A 21 | more efficient way is to take advantage of PhpStorm's *Insert Live Template* 22 | shortcut. Type as few or as many letters as you want and press `Cmd + J`. Then 23 | continue typing to filter the options. 24 | 25 | For example, for the Schema Builder, type `Sc` or `Sch` or `Schema` and press `Cmd + J`. 26 | 27 | **Note:** In the preview version of PhpStorm 8, live templates show up 28 | automatically as you type the first few letters. You should still press `Cmd + 29 | J` to filter out everything else (classes, variables, etc). 30 | 31 | ## Supported Live Templates ## 32 | 33 | - [Annotations](#annotations) 34 | - [Blade](#blade) 35 | - [Input](#requests--input) 36 | - [Request](#requests--input) 37 | - [Cookie](#requests--input) 38 | - [Route](#routes) 39 | - [View](#views-responses-and-redirects) 40 | - [Response](#views-responses-and-redirects) 41 | - [Redirect](#views-responses-and-redirects) 42 | - [Schema](#schema-builder) (includes column types) 43 | - [Cache](#cache) 44 | - [Form](#form) 45 | - [Session](#session) 46 | - [Helpers](#helpers) 47 | 48 | ### Annotations ### 49 | 50 | ![Route Annotations Screenshot](https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/develop/images/annotations.png) 51 | 52 | Tip: Type `@` and then `Cmd+J` inside a docblock to see the options. 53 | 54 | ### Blade ### 55 | 56 | ![Laravel Blade Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/laravel-blade-screenshot.png) 57 | 58 | ### Requests & Input ### 59 | ![Laravel Input Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/input-demo.png) 60 | 61 | ![Laravel Input Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/input-file-demo.png) 62 | 63 | ![Laravel Requests Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/request-demo.png) 64 | 65 | ![Laravel Cookie Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/cookie-demo.png) 66 | 67 | ### Routes ### 68 | 69 | ![Laravel Routes Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/routes-demo.png) 70 | 71 | All Route verbs are labelled `get` by default, but you can change it easily once the shortcut is expanded: 72 | 73 | ![Laravel Routes Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/routes-enum-demo.png) 74 | 75 | ### Views, Responses and Redirects ### 76 | 77 | ![Laravel Views Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/view-demo.png) 78 | 79 | ![Laravel Responses Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/response-demo.png) 80 | 81 | ![Laravel Redirects Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/redirect-demo.png) 82 | 83 | ### Schema Builder ### 84 | 85 | ![Laravel Schema Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/schema-demo.png) 86 | 87 | ![Laravel Tables Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/table-demo.png) 88 | 89 | ### Cache ### 90 | 91 | ![Laravel Cache Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/cache-demo.png) 92 | 93 | ### Form ### 94 | 95 | ![Laravel Form Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/form-demo.png) 96 | 97 | ### Session ### 98 | 99 | ![Laravel Session Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/session-demo.png) 100 | 101 | ### Helpers ### 102 | 103 | ![Laravel Helpers Screenshot](https://raw.github.com/koomai/phpstorm-laravel-live-templates/master/images/helpers-demo.png) 104 | 105 | ========== 106 | #### Other goodies #### 107 | Take your PhpStorm productivity to the next level with these [keyboard shortcuts](https://gist.github.com/koomai/9340189). 108 | -------------------------------------------------------------------------------- /images/annotations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/annotations.png -------------------------------------------------------------------------------- /images/cache-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/cache-demo.png -------------------------------------------------------------------------------- /images/cookie-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/cookie-demo.png -------------------------------------------------------------------------------- /images/form-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/form-demo.png -------------------------------------------------------------------------------- /images/helpers-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/helpers-demo.png -------------------------------------------------------------------------------- /images/input-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/input-demo.png -------------------------------------------------------------------------------- /images/input-file-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/input-file-demo.png -------------------------------------------------------------------------------- /images/laravel-blade-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/laravel-blade-screenshot.png -------------------------------------------------------------------------------- /images/redirect-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/redirect-demo.png -------------------------------------------------------------------------------- /images/request-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/request-demo.png -------------------------------------------------------------------------------- /images/response-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/response-demo.png -------------------------------------------------------------------------------- /images/routes-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/routes-demo.png -------------------------------------------------------------------------------- /images/routes-enum-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/routes-enum-demo.png -------------------------------------------------------------------------------- /images/schema-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/schema-demo.png -------------------------------------------------------------------------------- /images/session-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/session-demo.png -------------------------------------------------------------------------------- /images/table-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/table-demo.png -------------------------------------------------------------------------------- /images/view-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koomai/phpstorm-laravel-live-templates/92aa540addc5788e4816ba8f7d9818437899fea6/images/view-demo.png -------------------------------------------------------------------------------- /templates/Laravel_Blade.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 25 | 47 | 70 | 92 | 114 | 137 | 158 | 181 | 203 | 225 | 248 | 270 | 292 | 314 | 336 | 358 | 381 | 403 | 404 | 405 | -------------------------------------------------------------------------------- /templates/Laravel_Cache.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 29 | 55 | 80 | 104 | 129 | 154 | 178 | 202 | 226 | 250 | 251 | 252 | -------------------------------------------------------------------------------- /templates/Laravel_Form.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 13 | 23 | 34 | 44 | 54 | 64 | 74 | 84 | 96 | 108 | 117 | 126 | 137 | 149 | 159 | 168 | 176 | 177 | -------------------------------------------------------------------------------- /templates/Laravel_Helpers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 28 | 53 | 77 | 104 | 131 | 158 | 185 | 211 | 236 | 262 | 286 | 287 | 288 | -------------------------------------------------------------------------------- /templates/Laravel_Requests_and_Input.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 20 | 27 | 35 | 43 | 51 | 58 | 66 | 74 | 82 | 91 | 99 | 107 | 117 | 126 | 134 | 145 | 154 | 161 | 162 | 163 | -------------------------------------------------------------------------------- /templates/Laravel_Routes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 26 | 50 | 73 | 97 | 120 | 142 | 166 | 190 | 212 | 236 | 259 | 289 | 298 | 305 | 315 | 321 | 329 | 337 | 343 | 344 | 345 | -------------------------------------------------------------------------------- /templates/Laravel_Schema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 25 | 47 | 69 | 92 | 114 | 136 | 158 | 180 | 204 | 228 | 252 | 274 | 296 | 318 | 340 | 362 | 384 | 406 | 427 | 449 | 471 | 493 | 514 | 536 | 558 | 580 | 601 | 623 | 644 | 666 | 688 | 711 | 735 | 757 | 780 | 803 | 825 | 848 | 870 | 894 | 917 | 940 | 963 | 986 | 987 | 988 | -------------------------------------------------------------------------------- /templates/Laravel_Session.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 28 | 53 | 78 | 101 | 125 | 149 | 172 | 195 | 220 | 243 | 267 | 268 | 269 | -------------------------------------------------------------------------------- /templates/Laravel_Views_and_Responses.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 16 | 24 | 31 | 39 | 49 | 58 | 67 | 77 | 85 | 92 | 100 | 107 | 114 | 121 | 128 | 135 | 136 | 137 | --------------------------------------------------------------------------------