ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Laravel 5 Snippets

by Lykegenes ST2/ST3

Laravel 5 Snippets for Sublime Text

Labels snippets

Details

Installs

  • Total 82K
  • Win 50K
  • OS X 16K
  • Linux 17K
Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9
Windows 59 75 96 99 64 66 75 97 114 98 92 70 62 93 83 94 83 91 67 74 84 90 112 95 103 52 70 78 100 96 84 95 77 70 73 92 84 91 78 52 74 88 92 58 98 94
OS X 10 16 25 22 21 20 14 21 18 19 24 12 19 25 29 22 19 32 23 25 20 24 18 18 13 14 12 18 21 20 16 24 13 13 25 20 19 22 19 27 24 13 25 6 30 25
Linux 16 18 27 30 23 23 20 25 28 29 24 21 20 27 29 30 26 31 25 21 36 28 31 25 22 12 25 27 24 35 29 29 15 16 27 21 30 26 26 19 24 27 37 19 29 28

Readme

Source
raw.​githubusercontent.​com

Laravel 5 Snippets for Sublime Text

Latest Version Laravel VersionPackage Control

Installation

With the Package Control plugin : The easiest way to install Laravel 5 Snippets is through Package Control, which can be found at http://wbond.net/sublime_packages/package_control.

Using Package Manager, search for "Laravel 5 Snippets"

Without Git : Download the latest source from GitHub and copy the “Laravel 5 Sippets” folder to your Sublime Text “Packages” directory.

With Git : Clone the repository in your Sublime Text “Packages” directory:

git clone https://github.com/Lykegenes/laravel-5-snippets.git "Laravel 5 Snippets"

Usage

The included snippets are organized in categories following Laravel's Facades and their documentation; such as Auth::, Config:: and Session::. This way, you can quickly search for what you'd like to accomplish thanks to Sublime Text fuzzy search.

All the snippets in this package follow the following naming convention : {category}::{function name}. For example : Auth::check will produce this snippet in your code : Auth::check().

Included snippets

Here are the available snippet categories and prefixes :

Prefix Notes
Auth
Blade Add , text.html to the default value of "auto_complete_selector" in your Sublime Text settings to allow Snippets autocomplete in Blade files.
Cache
Config
Console
Cookie
Crypt
DB To create raw database queries and transactions.
Event
Hash
Helper Contains sub-categories : Helper::array, Helper::misc, Helper::path, Helper::strings, and Helper::url; just like in Laravel's documentation.
Input
Log
Mail
Redirect
Relation To create model relationships.
Response
Route
Schema Contains two sub-categories : Schema:: for snippets related to the database table itself; and Column:: for snippets related to the columns.
Session
Storage
View

Credits

License

The MIT License (MIT). Please see License File for more information.