From 44109dd9fbe93d7da0baba8e42463b15b4e87b6a Mon Sep 17 00:00:00 2001 From: James Brooks Date: Thu, 18 Jun 2015 16:13:02 +0100 Subject: [PATCH] Cast visible to integer --- app/Models/Incident.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/Models/Incident.php b/app/Models/Incident.php index 78aa38b4..cbaf9743 100644 --- a/app/Models/Incident.php +++ b/app/Models/Incident.php @@ -65,6 +65,15 @@ class Incident extends Model implements HasPresenter */ protected $dates = ['scheduled_at', 'deleted_at']; + /** + * The attributes that should be casted to native types. + * + * @var string[] + */ + protected $casts = [ + 'visible' => 'integer', + ]; + /** * Finds all visible incidents. *