官术网_书友最值得收藏!

Using Laravel with Sublime Text 2

One of the most popular text editors used for coding is Sublime Text. Sublime has many features that make coding fun, and with plugins, we can add in Laravel-specific features to help with our app.

Getting ready

Sublime Text 2 is a popular code editor that is very extensible and makes writing code effortless. An evaluation version can be downloaded from http://www.sublimetext.com/2.

We also need to have the Package Control package installed and enabled in Sublime, and that can be found at http://wbond.net/sublime_packages/package_control/installation.

How to do it...

For this recipe, follow these steps:

  1. In your menu bar, go to Preferences then Package Control:
  2. Choose Install Package:
  3. Search for laravel to see the listing. Choose Laravel 4 Snippets and let it install. After it's complete, choose Laravel-Blade and install it.

How it works...

The Laravel snippets in Sublime Text 2 greatly simplify writing common code, and it includes pretty much everything we'll need for application development. For example, when creating a route, simply start typing Route and a list will pop up allowing us to choose which route we want, which then automatically completes the rest of the code we need.

There's more...

Installing the Laravel-Blade package is helpful if we use the Blade template system that comes with Laravel. It recognizes Blade code in the files and will automatically highlight the syntax.

主站蜘蛛池模板: 棋牌| 饶平县| 十堰市| 台湾省| 大足县| 固始县| 彩票| 荔浦县| 郴州市| 道真| 万载县| 万荣县| 禹州市| 三江| 泌阳县| 沽源县| 咸丰县| 中西区| 泰州市| 漳浦县| 海晏县| 托克逊县| 南昌市| 仙游县| 临桂县| 宜君县| 伽师县| 新沂市| 滨州市| 青神县| 呈贡县| 平凉市| 渭南市| 宜章县| 北辰区| 广宗县| 略阳县| 古蔺县| 电白县| 武鸣县| 阜阳市|