Giter Club home page Giter Club logo

phpstorm-laravel-live-templates's Introduction

โš ๏ธ This repository is no longer maintained.

I no longer use this repository and do not maintain it anymore.

My recommendation is to use Laravel IDE Helper, which is a much more robust solution for autocompletion and static checking.

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.

phpstorm-laravel-live-templates's People

Contributors

dannystreur avatar koomai avatar lucasmezencio avatar pronskiy avatar tyil avatar w0ng avatar yamenarahman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phpstorm-laravel-live-templates's Issues

Can't Use Templates

Hi,
I'm going in to Library/Preferences/WebIde100/ but i don't have templates folder, i created this folder and download .xml files in to this folder, but i can't use this in phpstorm, i restarted phpstorm and go to live templates but this is not in live templates. please help me.

Support for PHPStorm 9

Good Morning,

can u build in support for upcoming PHPStorm Version 9?

Your current templates are not compatible with it.

Greetings

Update

Hi
any chance to update?
this is the best laravel live template thath i have used.

How to use blade live templates in *.blade.php

when I input @foreach in *.blade.php and then press the alt + j, there has no effect.

some problem I found:
all the live templates are defined for HTML files in setting. so I create a html file and try again. then it works. so I want to figure out what can I do for fix this problem. help me please.

Path issue in new version 9.0.2

I have windows OS and I added template on below path does not affect anything also could not find Preferences menu.

<your home directory>\.<product name><version number>\config\templates
C:\Program Files (x86)\JetBrains\PhpStorm 9.0.2\config\templates

Is that wrong path?

Enable/disable Laravel plugin?

Nice work!
Should I disable Laravel plugin and blade support? as I see duplicates suggestions.

Update:
I tried to disable Laravel plugin and blade support but sadly everything blows up, so how to fix these duplocations?

Response::make template doesn't include status code argument

Currently the live template for Response::make only suggests two arguments: $content and $headers and is missing the $status argument in between.

The expected syntax, at least in Laravel 4.2, is as follows:

Response::make($content = '', $status = 200, array $headers = array())

I'd offer a PR for this but I have no time.

Error in templates

Where the error when I type a tag blade appears:

Cannot read scheme Laravel_Form.xml from '$ROOT_CONFIG$/templates': Error on line 31: Attribute name "data-pjax-transient" associated with an element type "meta" must be followed by the ' = ' character.

And the list does not appear when I type Input:: or some other.

My version 7.1.2

Any tips?

thanks

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.