From a212cb0d7376305b18b3387742ca23668c8d0e3e Mon Sep 17 00:00:00 2001 From: sycjam Date: Tue, 26 May 2020 22:07:09 +0100 Subject: [PATCH] Update Episode.php --- backend/app/Episode.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/app/Episode.php b/backend/app/Episode.php index 36dd564..849a4ec 100644 --- a/backend/app/Episode.php +++ b/backend/app/Episode.php @@ -24,6 +24,15 @@ */ protected $guarded = ['release_episode_human_format', 'startDate']; + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'seen' => 'boolean', + ]; + /** * Accessor for human formatted release date. */