feat: final updates

This commit is contained in:
2026-08-22 11:11:28 -07:00
parent 618a3d4cd9
commit d4bb1b9414
43 changed files with 1136 additions and 375 deletions
+28 -19
View File
@@ -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');
}
}