Overview Version History Q & A Rating & Review
Laravel 5 snippets
This extension is made to help Laravel developers to code on Visual Studio Code.
Credit
This extension is based on sublime text extension for Laravel 5. So, huge credit goes to https://github.com/Lykegenes/laravel-5-snippets
Usage
The included snippets are organized in categories following Laravel's Facades and their documentation; such as Auth::
, Config::
and Session::
.
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()
.
Also, snippets for HTML and Form Builders for the Laravel Framework is supported based on https://github.com/LaravelCollective/html
Included snippets
Here are the available snippet categories and prefixes :
Prefix
Notes
Auth
Blade
Cache
Config
Console
Cookie
Crypt
DB
To create raw database queries and transactions.
Event
Form
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
Validator
Enjoy!