37 lines
789 B
PHP
37 lines
789 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
use Illuminate\Notifications\Notifiable;
|
|
use Laravel\Sanctum\HasApiTokens;
|
|
|
|
class User extends Authenticatable
|
|
{
|
|
use HasApiTokens, HasFactory, Notifiable;
|
|
|
|
|
|
protected $table ='users';
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'lastname',
|
|
'email',
|
|
'password',
|
|
];
|
|
|
|
public $timestamps = false;
|
|
|
|
public function estandars(){
|
|
return $this->hasMany(Estandar::class,'id');
|
|
}
|
|
public function plans(){
|
|
return $this->hasMany(Plan::class,'id');
|
|
}
|
|
public function evidencias(){
|
|
return $this->hasMany(Evidencia::class,'id');
|
|
}
|
|
}
|