Laravel Live Templates for PhpStorm
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8056af0 Apr 27, 2018

Laravel Live Templates for PhpStorm

How to:

  1. Download and copy the xml file(s) to your templates folder:
  • Windows: <your home directory>\.<product name><version number>\config\templates
  • Linux: ~/.<product name><version number>/config/templates
  • OS X: ~/Library/Preferences/<product name><version number>/templates

e.g. ~/Library/Preferences/PhpStorm2016.1/templates on OS X for PhpStorm 2016

  1. Restart PhpStorm.

  2. To see all templates, go to Preferences->Live Templates and expand the Template Group.

It's hard to remember shortcuts when there are a large number of options. A more efficient way is to take advantage of PhpStorm's Insert Live Template shortcut. Type as few or as many letters as you want and press Cmd + J. Then continue typing to filter the options.

For example, for the Schema Builder, type Sc or Sch or Schema and press Cmd + J.

Note: In the preview version of PhpStorm 8, live templates show up automatically as you type the first few letters. You should still press Cmd + J to filter out everything else (classes, variables, etc).

Supported Live Templates


Route Annotations Screenshot

Tip: Type @ and then Cmd+J inside a docblock to see the options.


Laravel Blade Screenshot

Requests & Input

Laravel Input Screenshot

Laravel Input Screenshot

Laravel Requests Screenshot

Laravel Cookie Screenshot


Laravel Routes Screenshot

All Route verbs are labelled get by default, but you can change it easily once the shortcut is expanded:

Laravel Routes Screenshot

Views, Responses and Redirects

Laravel Views Screenshot

Laravel Responses Screenshot

Laravel Redirects Screenshot

Schema Builder

Laravel Schema Screenshot

Laravel Tables Screenshot


Laravel Cache Screenshot


Laravel Form Screenshot


Laravel Session Screenshot


Laravel Helpers Screenshot


Other goodies

Take your PhpStorm productivity to the next level with these keyboard shortcuts.