feat: implement admin management

This commit is contained in:
2026-08-20 07:56:06 +03:30
parent 9d5e325c3f
commit b31dd1b8fb
15 changed files with 838 additions and 326 deletions
+6 -2
View File
@@ -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);
}
}