unsa-pis-be/app/Models/Responsables.php
2022-08-09 00:04:46 -05:00

24 lines
404 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Responsables extends Model
{
use HasFactory;
public $timestamps = true;
protected $table ='responsables';
protected $fillable = [
'nombre',
];
public function plans(){
return $this->belongsTo(plan::class,'id_plan');
}
}