2022-07-09 03:09:04 +00:00
|
|
|
<?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
|
2022-07-09 03:09:04 +00:00
|
|
|
{
|
|
|
|
use HasFactory;
|
|
|
|
|
2022-08-02 04:44:21 +00:00
|
|
|
public $timestamps = true;
|
2022-07-09 03:09:04 +00:00
|
|
|
|
|
|
|
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');
|
2022-07-09 03:09:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|