add 'returned' flag in items

This commit is contained in:
j3d1 2019-12-28 04:31:13 +01:00
parent 6bdbd2039b
commit b349690996
4 changed files with 61 additions and 16 deletions

View file

@ -15,7 +15,7 @@ class Item extends Model
* @var array
*/
protected $fillable = [
'iid', 'item_uid', 'description', 'wann', 'wo', 'eid', 'cid'
'iid', 'item_uid', 'description', 'wann', 'wo', 'eid', 'cid', 'returned_at'
];
@ -26,6 +26,9 @@ class Item extends Model
*
* @var array
*/
protected $hidden = ['created_at','updated_at', 'deleted_at', 'eid', 'iid'];
protected $hidden = ['created_at','updated_at', 'deleted_at', 'returned_at', 'eid', 'iid', 'wann', 'wo'];
public static function restored($callback)
{
}
}