Files
backend/app/Models/RmsEventHistory.php
2024-02-01 09:53:53 +00:00

30 lines
484 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class RmsEventHistory extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'user_id',
'status',
'path_file'
];
public function user()
{
return $this->belongsTo('App\Models\User');
}
public function rmsEvent()
{
return $this->belongsTo('App\Models\RmsEvent');
}
}