31 lines
533 B
PHP
31 lines
533 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Evidencias 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 plans(){
|
|
return $this->belongsTo(plan::class,'id_plan');
|
|
}
|
|
|
|
}
|