Skip to content

Commit d973103

Browse files
authored
Adds type hint to array to match trait structure (laravel#10018)
1 parent 1ae07b0 commit d973103

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eloquent.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ So, to get started, you should define which model attributes you want to make ma
843843
/**
844844
* The attributes that are mass assignable.
845845
*
846-
* @var array
846+
* @var array<int, string>
847847
*/
848848
protected $fillable = ['name'];
849849
}
@@ -864,7 +864,7 @@ When assigning JSON columns, each column's mass assignable key must be specified
864864
/**
865865
* The attributes that are mass assignable.
866866
*
867-
* @var array
867+
* @var array<int, string>
868868
*/
869869
protected $fillable = [
870870
'options->enabled',
@@ -878,7 +878,7 @@ If you would like to make all of your attributes mass assignable, you may define
878878
/**
879879
* The attributes that aren't mass assignable.
880880
*
881-
* @var array
881+
* @var array<string>|bool
882882
*/
883883
protected $guarded = [];
884884

0 commit comments

Comments
 (0)