Skip to content

Commit 4eeacf0

Browse files
committed
Updated the Form::date() method to use the Illuminate\Support\Carbon class
1 parent 7eedb1c commit 4eeacf0

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

README.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,27 @@ Usage
2727

2828
To use these snippets, type the trigger text followed by the `Tab` key.
2929

30-
| Trigger Text | Output |
31-
| ----------------- | ------------------------------------------------------------- |
32-
| `formopen` | `{!! Form::open() !!}` |
33-
| `formclose` | `{!! Form::close() !!}` |
34-
| `formtoken` | `{!! Form::token() !!}` |
35-
| `formmodel` | `{!! Form::model($user, []) !!}` |
36-
| `formlabel` | `{!! Form::label($for, $text, []) !!}` |
37-
| `formtext` | `{!! Form::text($name, $value, []) !!}` |
38-
| `formtextarea` | `{!! Form::textarea($name, $value, []) !!}` |
39-
| `formpassword` | `{!! Form::password($name, []) !!}` |
40-
| `formhidden` | `{!! Form::hidden($name, $value, []) !!}` |
41-
| `formemail` | `{!! Form::email($name, $value, []) !!}` |
42-
| `formfile` | `{!! Form::file($name, []) !!}` |
43-
| `formcheckbox` | `{!! Form::checkbox($name, $value, $checked, []) !!}` |
44-
| `formradio` | `{!! Form::radio($name, $value, $checked, []) !!}` |
45-
| `formnumber` | `{!! Form::number($name, $value, []) !!}` |
46-
| `formdate` | `{!! Form::date($name, \Carbon\Carbon::now(), []) !!}` |
47-
| `formselect` | `{!! Form::select($name, $optionsArray, $defaultKey, []) !!}` |
48-
| `formselectrange` | `{!! Form::selectRange($name, $min, $max), [] !!}` |
49-
| `formselectmonth` | `{!! Form::selectMonth($name, []) !!}` |
50-
| `formsubmit` | `{!! Form::submit($text, []) !!}` |
30+
| Trigger Text | Output |
31+
| ----------------- | ------------------------------------------------------------------------ |
32+
| `formopen` | `{!! Form::open() !!}` |
33+
| `formclose` | `{!! Form::close() !!}` |
34+
| `formtoken` | `{!! Form::token() !!}` |
35+
| `formmodel` | `{!! Form::model($user, []) !!}` |
36+
| `formlabel` | `{!! Form::label($for, $text, []) !!}` |
37+
| `formtext` | `{!! Form::text($name, $value, []) !!}` |
38+
| `formtextarea` | `{!! Form::textarea($name, $value, []) !!}` |
39+
| `formpassword` | `{!! Form::password($name, []) !!}` |
40+
| `formhidden` | `{!! Form::hidden($name, $value, []) !!}` |
41+
| `formemail` | `{!! Form::email($name, $value, []) !!}` |
42+
| `formfile` | `{!! Form::file($name, []) !!}` |
43+
| `formcheckbox` | `{!! Form::checkbox($name, $value, $checked, []) !!}` |
44+
| `formradio` | `{!! Form::radio($name, $value, $checked, []) !!}` |
45+
| `formnumber` | `{!! Form::number($name, $value, []) !!}` |
46+
| `formdate` | `{!! Form::date($name, \Illuminate\Support\Carbon::now(), []) !!}` |
47+
| `formselect` | `{!! Form::select($name, $optionsArray, $defaultKey, []) !!}` |
48+
| `formselectrange` | `{!! Form::selectRange($name, $min, $max), [] !!}` |
49+
| `formselectmonth` | `{!! Form::selectMonth($name, []) !!}` |
50+
| `formsubmit` | `{!! Form::submit($text, []) !!}` |
5151

5252
Contributing
5353
------------

snippets/Form Date.sublime-snippet

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<snippet>
22
<content><![CDATA[
3-
{!! Form::date(${1:\$name}, ${2:\Carbon\Carbon::now()}, [${3}]) !!}
3+
{!! Form::date(${1:\$name}, ${2:\Illuminate\Support\Carbon::now()}, [${3}]) !!}
44
]]></content>
55
<tabTrigger>formdate</tabTrigger>
66
<scope>text.blade, text.html</scope>

0 commit comments

Comments
 (0)