Cast visible to integer

This commit is contained in:
James Brooks
2015-06-18 16:13:02 +01:00
parent b91e128c72
commit 44109dd9fb

View File

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