mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 04:01:06 +03:30
update cycle
This commit is contained in:
+2
-2
@@ -6,12 +6,12 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Cycle extends Model
|
||||
{
|
||||
public $fillable = ['name', 'date', 'user_id', 'sterilizer_id', 'note', 'verified'];
|
||||
public $fillable = ['name', 'date', 'user_id', 'cycle_number', 'sterilizer_id', 'note', 'verified'];
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('App\User');
|
||||
}
|
||||
public function packes()
|
||||
public function packs()
|
||||
{
|
||||
return $this->belongsToMany('App\Pack', 'cycle_pack');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user