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. *