mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 06:01:06 +03:30
fix
This commit is contained in:
@@ -14,6 +14,11 @@ class Item extends Model implements HasMedia
|
||||
|
||||
public $fillable = [ 'name' , 'size' , 'unique_id' , 'specific' , 'note' , 'user_id' , 'udi' , 'status' , 'repair' , 'package_id' , 'creator_id' ];
|
||||
|
||||
public function scopeIsNotRepaired($query)
|
||||
{
|
||||
return $query->where( 'repair' , 0 );
|
||||
}
|
||||
|
||||
public function package()
|
||||
{
|
||||
return $this->belongsTo( 'App\Package' );
|
||||
|
||||
Reference in New Issue
Block a user