feat: final updates
This commit is contained in:
+28
-19
@@ -30,7 +30,7 @@ use Illuminate\Foundation\Auth\User as Authenticated;
|
||||
* @property string $username
|
||||
* @property string $password
|
||||
* @property string $province
|
||||
* @property string $city
|
||||
* @property string $cities
|
||||
* @property int $status
|
||||
* @property Carbon $created_at
|
||||
* @property Carbon $updated_at
|
||||
@@ -58,24 +58,23 @@ class User extends Authenticated
|
||||
'password'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'first_name',
|
||||
'last_name',
|
||||
'national_code',
|
||||
'gender',
|
||||
'marital_status',
|
||||
'spouse_name',
|
||||
'mobile',
|
||||
'email',
|
||||
'file_id',
|
||||
'username',
|
||||
'password',
|
||||
'province',
|
||||
'city',
|
||||
'status',
|
||||
'deleted'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'first_name',
|
||||
'last_name',
|
||||
'national_code',
|
||||
'gender',
|
||||
'marital_status',
|
||||
'spouse_name',
|
||||
'mobile',
|
||||
'email',
|
||||
'file_id',
|
||||
'username',
|
||||
'password',
|
||||
'province_id',
|
||||
'city_id',
|
||||
'status',
|
||||
'deleted'
|
||||
];
|
||||
public function file()
|
||||
{
|
||||
return $this->belongsTo(File::class);
|
||||
@@ -95,4 +94,14 @@ class User extends Authenticated
|
||||
{
|
||||
return $this->hasMany(Wishlist::class);
|
||||
}
|
||||
|
||||
public function province()
|
||||
{
|
||||
return $this->belongsTo(Province::class);
|
||||
}
|
||||
|
||||
public function city()
|
||||
{
|
||||
return $this->belongsTo(City::class, 'city_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user