feat: implement admin management
This commit is contained in:
+6
-2
@@ -12,7 +12,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class File
|
||||
*
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $name
|
||||
* @property string $extension
|
||||
@@ -21,7 +21,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
* @property string $path
|
||||
* @property Carbon $created_at
|
||||
* @property Carbon $updated_at
|
||||
*
|
||||
*
|
||||
* @property Collection|Flight[] $flights
|
||||
* @property Collection|User[] $users
|
||||
*
|
||||
@@ -53,4 +53,8 @@ class File extends Model
|
||||
{
|
||||
return $this->hasMany(User::class);
|
||||
}
|
||||
public function adminAvatar()
|
||||
{
|
||||
return $this->hasOne(AdminAvatar::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user