Skip to content

Commit

Permalink
Add some missing Request snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksamson committed Mar 7, 2016
1 parent 0115e15 commit 03d2468
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 0 deletions.
8 changes: 8 additions & 0 deletions snippets/Request/Request-all.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
\$request->all()
]]></content>
<tabTrigger>Request::all</tabTrigger>
<scope>source.php</scope>
<description>Get all of the input and files for the request.</description>
</snippet>
8 changes: 8 additions & 0 deletions snippets/Request/Request-allFiles.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
\$request->allFiles()
]]></content>
<tabTrigger>Request::allFiles</tabTrigger>
<scope>source.php</scope>
<description>Get an array of all of the files on the request.</description>
</snippet>
8 changes: 8 additions & 0 deletions snippets/Request/Request-except.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
\$request->except(${1:['key', 'otherKey']})
]]></content>
<tabTrigger>Request::except</tabTrigger>
<scope>source.php</scope>
<description>Get all of the input except for a specified array of items.</description>
</snippet>
8 changes: 8 additions & 0 deletions snippets/Request/Request-exists.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
\$request->exists(${1:'key'})
]]></content>
<tabTrigger>Request::exists</tabTrigger>
<scope>source.php</scope>
<description>Determine if the request contains a given input item key.</description>
</snippet>
8 changes: 8 additions & 0 deletions snippets/Request/Request-file.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
\$request->file(${1:'key'}${2:, 'default'})
]]></content>
<tabTrigger>Request::file</tabTrigger>
<scope>source.php</scope>
<description>Retrieve a file from the request.</description>
</snippet>
8 changes: 8 additions & 0 deletions snippets/Request/Request-fingerprint.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
\$request->fingerprint()
]]></content>
<tabTrigger>Request::fingerprint</tabTrigger>
<scope>source.php</scope>
<description>Get a unique fingerprint for the request / route / IP address.</description>
</snippet>
8 changes: 8 additions & 0 deletions snippets/Request/Request-has.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
\$request->has(${1:'key'})
]]></content>
<tabTrigger>Request::has</tabTrigger>
<scope>source.php</scope>
<description>Determine if the request contains a non-empty value for an input item.</description>
</snippet>
8 changes: 8 additions & 0 deletions snippets/Request/Request-hasFile.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
\$request->has(${1:'key'})
]]></content>
<tabTrigger>Request::has</tabTrigger>
<scope>source.php</scope>
<description>Determine if the uploaded data contains a file.</description>
</snippet>
8 changes: 8 additions & 0 deletions snippets/Request/Request-input.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
\$request->input(${1:'key'}${2:, 'default'})
]]></content>
<tabTrigger>Request::input</tabTrigger>
<scope>source.php</scope>
<description>Retrieve an input item from the request.</description>
</snippet>
8 changes: 8 additions & 0 deletions snippets/Request/Request-old.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
\$request->old(${1:'key'}${2:, 'default'})
]]></content>
<tabTrigger>Request::old</tabTrigger>
<scope>source.php</scope>
<description>Retrieve an old input item.</description>
</snippet>
8 changes: 8 additions & 0 deletions snippets/Request/Request-only.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
\$request->only(${1:['key', 'otherKey']})
]]></content>
<tabTrigger>Request::only</tabTrigger>
<scope>source.php</scope>
<description>Get a subset of the items from the input data.</description>
</snippet>

0 comments on commit 03d2468

Please sign in to comment.