Hide created/updated timestamp group attributes from api response

This commit is contained in:
Bubka 2020-11-21 21:50:33 +01:00
parent 105b932a26
commit 630d3b9a87

View File

@ -24,6 +24,14 @@ class Group extends Model
protected $appends = ['isActive'];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = ['created_at', 'updated_at'];
/**
* Get the TwoFAccounts of the group.
*/