mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 20:51:07 +03:30
20 lines
387 B
PHP
20 lines
387 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Cycle extends Model
|
|
{
|
|
public $fillable = ['name', 'date', 'user_id', 'cycle_number', 'sterilizer_id', 'note', 'verified'];
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('App\User');
|
|
}
|
|
public function packs()
|
|
{
|
|
return $this->belongsToMany('App\Pack', 'cycle_pack');
|
|
}
|
|
|
|
}
|