Skip to content

Commit

Permalink
[10.x] Unified Pivot and Model Doc Block $guarded (#49851)
Browse files Browse the repository at this point in the history
If the behavior of `$guarded` in Pivot is the same as in Model, they must have the same Doc Block.
  • Loading branch information
eusonlito authored Jan 26, 2024
1 parent 3bbb50e commit 7a567c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Relations/Pivot.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Pivot extends Model
/**
* The attributes that aren't mass assignable.
*
* @var array
* @var array<string>|bool
*/
protected $guarded = [];
}

0 comments on commit 7a567c4

Please sign in to comment.