Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Alternate implementation to allow "safe" objects to be used by Eloquent models (without breaking mass assignment protection) #50218

Draft
wants to merge 9 commits into
base: 11.x
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix failed tests
  • Loading branch information
x7ryan committed Feb 23, 2024
commit 612513124ccd0db8b28f822caecd2157b1a6bb08
4 changes: 2 additions & 2 deletions tests/Integration/Database/EloquentUpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ public function testUpdateAllowsSafeObject()
'name' => Str::random(),
]);

$model->update(new ValidatedInput(['job' => 'Developer']));
$model->update(new ValidatedInput(['title' => 'Developer']));

$model->refresh();

$this->assertSame('Developer', $model->job);
$this->assertSame('Developer', $model->title);
}

public function testUpdateWithLimitsAndOrders()
Expand Down
Loading