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

25 lines
434 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Acta extends Model
{
use HasFactory;
public $timestamps = true;
protected $table = 'actas';
protected $fillable = [
'titulo',
'fecha',
'file',
];
public function estandar()
{
return $this->belongsTo(Estandar::class, 'id_estandar');
}
}