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

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.

主站蜘蛛池模板: 佛山市| 会东县| 盘锦市| 东乌| 本溪市| 宜宾县| 黔西| 延边| 玛曲县| 星座| 金山区| 乡宁县| 淮安市| 澳门| 临漳县| 雅江县| 连山| 航空| 内丘县| 洛川县| 金川县| 汝城县| 乐业县| 抚州市| 年辖:市辖区| 略阳县| 长垣县| 广宗县| 禹州市| 南开区| 丹巴县| 大洼县| 合江县| 张北县| 绥宁县| 易门县| 奉新县| 土默特左旗| 巢湖市| 淮滨县| 伊宁市|