@@ -3560,6 +3560,7 @@ public function testAccessorsNotCalledForNonVisibleAttributes()
35603560 protected function location (): Attribute
35613561 {
35623562 $ this ->locationAccessorCalled = true ;
3563+
35633564 return Attribute::make (
35643565 get: fn () => 'Paris ' ,
35653566 );
@@ -3568,6 +3569,7 @@ protected function location(): Attribute
35683569 protected function timezone (): Attribute
35693570 {
35703571 $ this ->timezoneAccessorCalled = true ;
3572+
35713573 return Attribute::make (
35723574 get: fn () => 'Europe/Paris ' ,
35733575 );
@@ -3595,6 +3597,7 @@ public function testAccessorsCalledForVisibleAttributes()
35953597 protected function location (): Attribute
35963598 {
35973599 $ this ->locationAccessorCalled = true ;
3600+
35983601 return Attribute::make (
35993602 get: fn ($ value ) => 'Paris ' ,
36003603 );
@@ -3621,6 +3624,7 @@ public function testAccessorsNotCalledForHiddenAttributes()
36213624 protected function location (): Attribute
36223625 {
36233626 $ this ->locationAccessorCalled = true ;
3627+
36243628 return Attribute::make (
36253629 get: fn ($ value ) => 'Paris ' ,
36263630 );
@@ -3634,7 +3638,7 @@ protected function location(): Attribute
36343638 $ this ->assertEquals (['id ' => 1 , 'name ' => 'Test ' ], $ array );
36353639 }
36363640
3637- public function testSetOnlyAttributeMutatorDoesNotBreakSerialization ()
3641+ public function testSetOnlyAttributeMutatorDoesNotBreakSerialization ()
36383642 {
36393643 $ model = new class extends Model
36403644 {
0 commit comments