Skip to content

Commit

Permalink
fix: mysterious string casting that broke relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
arthaud-proust committed Oct 27, 2023
1 parent 9ed315e commit 9bc348f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Models/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class News extends Model
];

protected $casts = [
'user_id' => 'int',
'sources' => 'array',
'resources' => 'array',
];
Expand Down

0 comments on commit 9bc348f

Please sign in to comment.