Laravel Live Templates for PhpStorm

Overview

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.

Comments
  • Additional templates for model relationships

    Additional templates for model relationships

    Hi,

    I was thinking of writing some live templates to help with model relationships and then I came across your repo and thought it might be best to just add them here.

    I am having a little issue with this one though https://www.dropbox.com/s/1u4pssojfj6o3mu/Screenshot%202016-03-23%2012.04.17.png?dl=0

    Any ideas where I am going wrong?

    James

    opened by jamesmills 2
  • Error in templates

    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

    opened by t-vieira 2
  • Update dir structure according to PhpStorm settings repository

    Update dir structure according to PhpStorm settings repository

    There is a more easy way to share and install templates. You can do it with Settings repositories. I'm going to write a post on PhpStorm blog about this soon.

    opened by pronskiy 1
  • Update README

    Update README

    GNU+Linux uses forward slashes (/), not backwards slashes (\).

    Additionally, some extraordinarily long lines of text have been reformatted to cut off at 80 characters. This has no effect on the rendered version of the README, but plays nicer with all editors and git itself.

    opened by Tyil 1
  • Collaboration options

    Collaboration options

    I've enjoyed using your templates for a while now, and I've added my own tweaks here and there. I don't know if you're interested in receiving pull-requests, but now I'm wondering how it would even be possible (without a LOT of hassle). Do you have any experience with this? I've also asked on Reddit: https://www.reddit.com/r/phpstorm/comments/5h6m4m/best_way_to_collaborate_on_live_templates/

    opened by mortenscheel 1
  • Can't Use Templates

    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.

    opened by mehdibahraami 1
  • How to use blade live templates in *.blade.php

    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.

    opened by wumouse 1
  • Form::submit add btn class instead of from control

    Form::submit add btn class instead of from control

    <variable name="OPTION" expression="" defaultValue="&quot;, ['class' =&gt; 'form-control']&quot;" alwaysStopAt="true" />

    <variable name="OPTION" expression="" defaultValue="&quot;, ['class' =&gt; '**btn btn-default**']&quot;" alwaysStopAt="true" />

    opened by Boufel 1
  • Path issue in new version 9.0.2

    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?

    opened by ajmerainfo 1
  • Enable/disable Laravel plugin?

    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?

    opened by yamenarahman 0
Owner
Sid
Purveyor of Code.
Sid
Document templates Laravel package is intended for creating/managing user editable document template

Document Templates Introduction Document templates Laravel package is intended for creating/managing user editable document templates, with ability to

42coders 123 Aug 15, 2022
PHP template engine for native PHP templates

FOIL PHP template engine, for PHP templates. Foil brings all the flexibility and power of modern template engines to native PHP templates. Write simpl

Foil PHP 167 Dec 3, 2022
Contao extension to provide content templates for pages.

Contao Content Templates In Contao, the regular content of a page can be made up of different articles, each assigned to different sections of a page

inspiredminds 7 Oct 11, 2022
Renders Mithril components to HTML for use in blade templates

Flarum Mithril2Html Uses Chrome Puppeteer via Spatie Browsershot to render Mithril components as static HTML. Follow Browsershot instructions to setup

Clark Winkelmann 3 Nov 13, 2022
Qiq templates for PHP 8.

Qiq Templates for PHP 8 This package provides a PHP 8.0 implementation of the TemplateView and TwoStepView patterns using PHP itself as the templating

null 18 Nov 24, 2022
Simple PHP templating system for user editable templates.

Simple template Simple PHP templating system for user editable templates. Idea Most applications need to render templates that insert safely treated v

Baraja packages 1 Jan 23, 2022
Foil brings all the flexibility and power of modern template engines to native PHP templates

Foil brings all the flexibility and power of modern template engines to native PHP templates. Write simple, clean and concise templates with nothing more than PHP.

Foil PHP 167 Dec 3, 2022
Yii2 Gii Extended templates and generators

model template with TimestampBehavior and BlameableBehavior according to columns

潘文斌 1 Feb 12, 2020
View template engine of PHP extracted from Laravel

Blade 【简体中文】 This is a view templating engine which is extracted from Laravel. It's independent without relying on Laravel's Container or any others.

刘小乐 142 Oct 19, 2022
Laravel package template

REPLACE Simple and flexible package template. Usage Replace all occurances of REPLACE (case sensitive) with the name of the package namespace. E.g. th

ARCHTECH 56 Aug 15, 2022
SwitchBlade: Custom Directives for the Laravel Blade templating engine

SwitchBlade: Custom Directives for the Laravel Blade templating engine

Awkward Ideas 10 Nov 29, 2022
Laravel Live Templates for PhpStorm

Laravel Live Templates for PhpStorm How to: Go to Preferences | Tools | Settings Repository Add Read-only Source https://github.com/koomai/phpstorm-la

Sid 1.2k Nov 2, 2022
PHPStorm Live template preferences for Magento 2 Projects

Magento 2 PHPStorm Preferences This project is intended to setup useful PHPStorm Templates for Magento 2 Projects. Disclaimer This project overrides t

Stämpfli AG 229 Jul 18, 2022
PHPStorm Magento 2 File Templates

phpstorm-m2-filetemplates PHPStorm Magento 2 File Templates Useful file templates for working with Magento 2. To install, place the files directly in

Laura Folco 39 Jul 29, 2022
Live Helper Chat - live support for your website. Featuring web and mobile apps, Voice & Video & ScreenShare. Supports Telegram, Twilio (whatsapp), Facebook messenger including building a bot.

Live helper chat It's an open-source powered application, which brings simplicity and usability in one place. With live helper chat you can bring live

Live Helper Chat 1.7k Dec 7, 2022
Laravel Framework Plugin for PhpStorm / IntelliJ IDEA

IntelliJ IDEA / PhpStorm Laravel Plugin Based on Symfony Plugin Key Value Plugin url https://plugins.jetbrains.com/plugin/7532 Id de.espend.idea.larav

Daniel Espendiller 568 Nov 15, 2022
🧩 Laravel Query Builder integration for PhpStorm

Laravel Query Laravel + DataGrip = ♥️ This plugin provides database integration for Laravel query builder. Features Schemas, tables, views and columns

Ernestas Kvedaras 41 Oct 7, 2022
PHP runtime & extensions header files for PhpStorm

phpstorm-stubs STUBS are normal, syntactically correct PHP files that contain function & class signatures, constant definitions, etc. for all built-in

JetBrains 1.2k Nov 24, 2022
A .phpstorm.meta.php file for TYPO3 projects

.phpstorm.meta.php for TYPO3 This repository contains a .phpstorm.meta.php file which can be used to ease the work with TYPO3 projects in phpstorm. TY

Alexander Schnitzler 20 Dec 2, 2022
Magento 2 Debug Helper Module for easy debugging with Xdebug and PHPStorm or any other IDE

Magento 2 Debug Helper Information and Usage Magento 2 Debug Helper Module usage with PHPStorm and Xdebug Installation To install the Magento 2 Debug

Dmitry Shkoliar 13 May 24, 2022