unsa-pis-be/app/Models/Estandar.php
2022-07-08 22:09:04 -05:00

30 lines
566 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Estandar extends Model
{
use HasFactory;
public $timestamps = false;
protected $table ='estandars';
protected $fillable = [
'name',
];
public function users(){
return $this->belongsTo(User::class,'id_user');
}
public function plans(){
return $this->hasMany(Plan::class,'id');
}
public function evidencias(){
return $this->hasMany(Evidencia::class,'id');
}
}