Skip to content

Commit

Permalink
improve Route snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksamson committed Jul 20, 2016
1 parent f7ba0c9 commit 401b6f8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
10 changes: 10 additions & 0 deletions snippets/Route/Route-delete.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
Route::delete('${1:users/{id\}}', function(${2:$id}) {
${3://}
});
]]></content>
<tabTrigger>Route::delete</tabTrigger>
<scope>source.php</scope>
<description>Basic Delete Route.</description>
</snippet>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
Route::get('${2:users/{id\}}', function(${3:$id}) {
${4://}
Route::get('${1:users/{id\}}', function(${2:$id}) {
${3://}
});
]]></content>
<tabTrigger>Route::get</tabTrigger>
Expand Down
10 changes: 10 additions & 0 deletions snippets/Route/Route-put.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
Route::put('${1:users/{id\}}', function(${2:$id}) {
${3://}
});
]]></content>
<tabTrigger>Route::put</tabTrigger>
<scope>source.php</scope>
<description>Basic Put Route.</description>
</snippet>
4 changes: 2 additions & 2 deletions snippets/Route/Router-post.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
Route::post('${2:users/{id\}}', function(${3:$id}) {
${4://}
Route::post('${1:users/{id\}}', function(${2:$id}) {
${3://}
});
]]></content>
<tabTrigger>Route::post</tabTrigger>
Expand Down

0 comments on commit 401b6f8

Please sign in to comment.