unsa-pis-be/app/Models/Evidencias.php

31 lines
532 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
2022-07-27 05:42:33 +00:00
class Evidencias extends Model
{
use HasFactory;
2022-08-02 04:44:21 +00:00
public $timestamps = true;
protected $table ='evidencias';
protected $fillable = [
'codigo',
'denominacion',
'adjunto',
];
public function users(){
return $this->belongsTo(User::class,'id_user');
}
2022-07-27 05:42:33 +00:00
public function plans(){
return $this->belongsTo(plan::class,'id_plan');
}
}