mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 04:11:05 +03:30
add pack and update items & packegs & cycles
This commit is contained in:
+3
-3
@@ -6,14 +6,14 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Cycle extends Model
|
||||
{
|
||||
public $fillable = ['name', 'unique_id', 'user_id', 'result', 'description'];
|
||||
public $fillable = ['name', 'date', 'user_id', 'sterilizer_id', 'note', 'verified'];
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('App\User');
|
||||
}
|
||||
public function packages()
|
||||
public function packes()
|
||||
{
|
||||
return $this->belongsToMany('App\Package', 'cycle_package');
|
||||
return $this->belongsToMany('App\Pack', 'cycle_pack');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user