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