Structor CSSD

This commit is contained in:
saeid
2019-04-25 20:14:09 +04:30
parent fc162db99b
commit 14a91bdef7
72 changed files with 6957 additions and 4636 deletions
+7 -7
View File
@@ -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');
}