mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 13:11:07 +03:30
Structor CSSD
This commit is contained in:
+7
-7
@@ -11,15 +11,15 @@ use Spatie\Permission\Traits\HasRoles;
|
||||
class User extends Authenticatable
|
||||
{
|
||||
use Notifiable, HasApiTokens, HasRoles;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name', 'email', 'password','status','medical_center_id','address', 'gender'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'name', 'email', 'password','status','medical_center_id','address', 'gender'
|
||||
];
|
||||
/**
|
||||
* The attributes that should be hidden for arrays.
|
||||
*
|
||||
@@ -38,15 +38,15 @@ class User extends Authenticatable
|
||||
'email_verified_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function medicalcenter()
|
||||
public function medical_center()
|
||||
{
|
||||
return $this->belongsTo('App\MedicalCenter');
|
||||
}
|
||||
public function testresults()
|
||||
public function test_results()
|
||||
{
|
||||
return $this->hasMany('App\TestResult');
|
||||
}
|
||||
public function testtypes()
|
||||
public function test_types()
|
||||
{
|
||||
return $this->hasMany('App\TestType');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user