Update Media model

This commit is contained in:
Daniel Supernault 2021-09-03 21:25:19 -06:00
parent d7b6edc018
commit d0bfefe8d0
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -18,6 +18,10 @@ class Media extends Model
*/
protected $dates = ['deleted_at'];
protected $casts = [
'srcset' => 'array'
];
public function status()
{
return $this->belongsTo(Status::class);