unsa-pis-be/app/Models/evidencia.php
2022-07-08 22:09:04 -05:00

31 lines
544 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class evidencia extends Model
{
use HasFactory;
public $timestamps = false;
protected $table ='evidencias';
protected $fillable = [
'codigo',
'denominacion',
'adjunto',
];
public function users(){
return $this->belongsTo(User::class,'id_user');
}
public function estandars(){
return $this->belongsTo(Estandar::class,'id_estandar');
}
}