Skip to content

Commit

Permalink
fix: styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Apfelfrisch committed Sep 27, 2024
1 parent c46005a commit 31ad945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Database/DatabaseEloquentModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3909,9 +3909,9 @@ class EloquentModelWithMutators extends Model
protected function fullname(): Attribute
{
return Attribute::make(
get: fn (mixed $value, array $attributes) => $attributes['first_name'] . ' ' . $attributes['last_name'],
get: fn (mixed $value, array $attributes) => $attributes['first_name'].' '.$attributes['last_name'],
set: function (string $fullName) {
[$firstName, $lastName] = explode(" ", $fullName);
[$firstName, $lastName] = explode(' ', $fullName);

return [
'first_name' => $firstName,
Expand Down

0 comments on commit 31ad945

Please sign in to comment.