Cast visible to integer
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user