add 'returned' flag in items
This commit is contained in:
parent
6bdbd2039b
commit
b349690996
4 changed files with 61 additions and 16 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue