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

22 lines
401 B
PHP
Raw Normal View History

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