fix: update models
This commit is contained in:
@@ -16,6 +16,7 @@ class Admin extends Authenticatable
|
|||||||
'email',
|
'email',
|
||||||
'password',
|
'password',
|
||||||
'status',
|
'status',
|
||||||
|
'last_login_at',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $hidden = [
|
protected $hidden = [
|
||||||
@@ -31,4 +32,6 @@ class Admin extends Authenticatable
|
|||||||
{
|
{
|
||||||
return $this->hasOne(AdminPermission::class);
|
return $this->hasOne(AdminPermission::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-2
@@ -12,7 +12,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Class File
|
* Class File
|
||||||
*
|
*
|
||||||
* @property int $id
|
* @property int $id
|
||||||
* @property string $name
|
* @property string $name
|
||||||
* @property string $extension
|
* @property string $extension
|
||||||
@@ -21,7 +21,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
* @property string $path
|
* @property string $path
|
||||||
* @property Carbon $created_at
|
* @property Carbon $created_at
|
||||||
* @property Carbon $updated_at
|
* @property Carbon $updated_at
|
||||||
*
|
|
||||||
* @property Collection|Flight[] $flights
|
* @property Collection|Flight[] $flights
|
||||||
* @property Collection|Tour[] $tours
|
* @property Collection|Tour[] $tours
|
||||||
* @property Collection|User[] $users
|
* @property Collection|User[] $users
|
||||||
@@ -58,4 +57,7 @@ class File extends Model
|
|||||||
{
|
{
|
||||||
return $this->hasMany(User::class);
|
return $this->hasMany(User::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user