Skip to content

Commit de4ac8c

Browse files
author
Admin
committed
1 parent ea2e755 commit de4ac8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

illuminate/Database/Eloquent/Concerns/GuardsAttributes.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trait GuardsAttributes
1414
/**
1515
* The attributes that aren't mass assignable.
1616
*
17-
* @var array<string>|bool
17+
* @var array<string>
1818
*/
1919
protected $guarded = ['*'];
2020

@@ -28,8 +28,8 @@ trait GuardsAttributes
2828
/**
2929
* The actual columns that exist on the database and can be guarded.
3030
*
31-
* @var array<string>
32-
*/
31+
* @var array<class-string,list<string>>
32+
*/
3333
protected static $guardableColumns = [];
3434

3535
/**
@@ -75,7 +75,7 @@ public function mergeFillable(array $fillable)
7575
*/
7676
public function getGuarded()
7777
{
78-
return $this->guarded === false
78+
return self::$unguarded === true
7979
? []
8080
: $this->guarded;
8181
}

0 commit comments

Comments
 (0)