unsa-pis-be/app/Models/Narrativa.php
2022-10-11 00:29:23 -05:00

23 lines
404 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Narrativa extends Model
{
use HasFactory;
protected $table = 'narrativas';
protected $fillable = [
'semestre',
'contenido',
];
public function estandars()
{
return $this->belongsTo(Estandar::class, 'id_estandar');
}
}