Model Narrativa
This commit is contained in:
parent
224c2e5c64
commit
46eb9de384
23
app/Models/Narrativa.php
Normal file
23
app/Models/Narrativa.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?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 = [
|
||||
'year',
|
||||
'semestre',
|
||||
'cabecera',
|
||||
'contenido',
|
||||
];
|
||||
|
||||
public function estandars(){
|
||||
return $this->belongsTo(Estandar::class,'id_estandar');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user