mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 08:31:07 +03:30
fix
This commit is contained in:
+7
-4
@@ -6,18 +6,21 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Label extends Model
|
||||
{
|
||||
public $fillable = ['sterile_date', 'expire_date', 'sterilizer_id', 'cycle_number', 'lot_number', 'user_id', 'package_id'];
|
||||
public $fillable = [ 'sterile_date' , 'expire_date' , 'sterilizer_id' , 'cycle_number' , 'lot_number' , 'user_id' , 'package_id' ];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('App\User');
|
||||
return $this->belongsTo( 'App\User' );
|
||||
}
|
||||
|
||||
public function package()
|
||||
{
|
||||
return $this->belongsTo('App\Package');
|
||||
return $this->belongsTo( 'App\Package' );
|
||||
}
|
||||
|
||||
public function cycles()
|
||||
{
|
||||
return $this->belongsToMany('App\Cycle', 'cycle_label')->withPivot('count');
|
||||
return $this->belongsToMany( 'App\Cycle' , 'cycle_label' )->withPivot( 'count' );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user