# Laravel 5 Snippets for Sublime Text [![Latest Version][ico-latest-version]][link-latest-version] ![Laravel Version][ico-laravel-version] [![Package Control][ico-package-control]][link-package-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](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 | The [Laravel Blade Highlighter](https://packagecontrol.io/packages/Laravel%20Blade%20Highlighter) package is required to enable 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](http://laravel.com/docs/5.5/helpers#available-methods). 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 - [Patrick Samson][link-author] - [All Contributors][link-contributors] ## License The MIT License (MIT). Please see [License File](LICENSE.md) for more information. [ico-package-control]: https://img.shields.io/packagecontrol/dt/Laravel%205%20Snippets.svg [ico-latest-version]: https://img.shields.io/github/release/lykegenes/laravel-5-snippets.svg [ico-laravel-version]: https://img.shields.io/badge/Laravel-5.5-orange.svg [link-package-control]: https://packagecontrol.io/packages/Laravel%205%20Snippets [link-latest-version]: https://github.com/Lykegenes/laravel-5-snippets/releases [link-author]: https://github.com/lykegenes [link-contributors]: ../../contributors