Skip to content

Commit ab7aa61

Browse files
committed
add hidden,casts
1 parent 96cdaf0 commit ab7aa61

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Casts.sublime-snippet

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<snippet>
2+
<tabTrigger>casts</tabTrigger>
3+
<!-- <scope>source.php</scope> -->
4+
<content><![CDATA[
5+
/**
6+
* The attributes that should be cast to native types.
7+
*
8+
* @var array
9+
*/
10+
protected $casts = [
11+
'date_of_birth' => 'date',
12+
];
13+
14+
]]></content>
15+
</snippet>

Hidden.sublime-snippet

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<snippet>
2+
<tabTrigger>hidden</tabTrigger>
3+
<!-- <scope>source.php</scope> -->
4+
<content><![CDATA[
5+
/**
6+
* The attributes that should be hidden for arrays.
7+
*
8+
* @var array
9+
*/
10+
protected $hidden = [
11+
'password',
12+
];
13+
14+
]]></content>
15+
</snippet>

0 commit comments

Comments
 (0)