Skip to content

Commit c8c42ee

Browse files
authored
Update eloquent-mutators.md
1 parent 20d4607 commit c8c42ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eloquent-mutators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ When casting to value objects, any changes made to the value object will automat
316316

317317
$user->save();
318318

319-
> {note} If you still want to output your Eloquent models as JSON or convert them to an array then it's expected that you implement `Illuminate\Contracts\Support\Arrayable` on any value object that's being casted.
319+
> {tip} If you plan to serialize your Eloquent models containing value objects to JSON or arrays, you should implement the `Illuminate\Contracts\Support\Arrayable` and `JsonSerializable` interfaces on the value object.
320320
321321
#### Inbound Casting
322322

0 commit comments

Comments
 (0)