Skip to content

Commit 96cdaf0

Browse files
committed
add guarded
1 parent 488df8f commit 96cdaf0

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

Fillable.sublime-snippet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<snippet>
22
<tabTrigger>fillable</tabTrigger>
3-
<scope>source.php</scope>
3+
<!-- <scope>source.php</scope> -->
44
<content><![CDATA[
55
/**
66
* The attributes that are mass assignable.
77
*
88
* @var array
99
*/
1010
protected \$fillable = [
11-
'${1:FIELD}',
11+
'${1:name}',
1212
];
1313
1414
]]></content>

Guarded.sublime-snippet

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<snippet>
2+
<tabTrigger>guarded</tabTrigger>
3+
<!-- <scope>source.php</scope> -->
4+
<content><![CDATA[
5+
/**
6+
* The attributes that aren't mass assignable.
7+
*
8+
* @var array
9+
*/
10+
protected \$guarded = [];
11+
12+
]]></content>
13+
</snippet>

0 commit comments

Comments
 (0)