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

23 lines
404 B
PHP
Raw Normal View History

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