Coder Social home page Coder Social logo

phpstorm-laravel-live-templates's Introduction

Laravel Live Templates for PhpStorm

How to:

  1. Go to Preferences | Tools | Settings Repository

  2. Add Read-only Source https://github.com/koomai/phpstorm-laravel-live-templates

  3. Restart PhpStorm.

  4. 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

Annotations

Route Annotations Screenshot

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

Blade

Laravel Blade Screenshot

Requests & Input

Laravel Input Screenshot

Laravel Input Screenshot

Laravel Requests Screenshot

Laravel Cookie Screenshot

Routes

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

Cache

Laravel Cache Screenshot

Form

Laravel Form Screenshot

Session

Laravel Session Screenshot

Helpers

Laravel Helpers Screenshot

==========

Other goodies

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.