Skip to content

Commit

Permalink
Add casts
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkregel committed Sep 6, 2023
1 parent 2b90b2d commit 54fa345
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Models/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ class Person extends Model implements ModelQuery
use HasFactory;

public $guarded = [];

public $casts = [
'birthdate' => 'date',
'phone_numbers' => 'array',
'addresses' => 'array',
'emails' => 'array',
];
}

0 comments on commit 54fa345

Please sign in to comment.