Read user_id/account_id via getAttribute so the nullable-FK guards aren't flagged as always-true/false against the models' non-null PHPDoc types, and backfill through the query builder (DB::table) instead of a generic Eloquent builder, which also stamps soft-deleted rows without needing withTrashed(). |
||
|---|---|---|
| .. | ||
| BelongsToSpace.php | ||