feat: complete users in admin panel
This commit is contained in:
+4
-19
@@ -29,16 +29,13 @@ use Illuminate\Foundation\Auth\User as Authenticated;
|
||||
* @property int|null $file_id
|
||||
* @property string $username
|
||||
* @property string $password
|
||||
* @property int $province_id
|
||||
* @property int $city_id
|
||||
* @property string $province
|
||||
* @property string $city
|
||||
* @property int $status
|
||||
* @property Carbon $created_at
|
||||
* @property Carbon $updated_at
|
||||
* @property Carbon $deleted
|
||||
*
|
||||
* @property File|null $file
|
||||
* @property Province $province
|
||||
* @property City $city
|
||||
* @property Collection|Booking[] $bookings
|
||||
* @property Collection|Comment[] $comments
|
||||
*
|
||||
@@ -53,8 +50,6 @@ class User extends Authenticated
|
||||
'gender' => UserGenderStatus::class,
|
||||
'marital_status' => UserMaritalStatus::class,
|
||||
'file_id' => 'int',
|
||||
'province_id' => 'int',
|
||||
'city_id' => 'int',
|
||||
'status' => UserStatus::class,
|
||||
'deleted' => 'datetime'
|
||||
];
|
||||
@@ -75,8 +70,8 @@ class User extends Authenticated
|
||||
'file_id',
|
||||
'username',
|
||||
'password',
|
||||
'province_id',
|
||||
'city_id',
|
||||
'province',
|
||||
'city',
|
||||
'status',
|
||||
'deleted'
|
||||
];
|
||||
@@ -86,16 +81,6 @@ class User extends Authenticated
|
||||
return $this->belongsTo(File::class);
|
||||
}
|
||||
|
||||
public function province()
|
||||
{
|
||||
return $this->belongsTo(Province::class);
|
||||
}
|
||||
|
||||
public function city()
|
||||
{
|
||||
return $this->belongsTo(City::class);
|
||||
}
|
||||
|
||||
public function bookings()
|
||||
{
|
||||
return $this->hasMany(Booking::class);
|
||||
|
||||
Reference in New Issue
Block a user