ServerGroup.php 579 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace ModulesGarden\ProxmoxAddon\App\Models;
  3. use ModulesGarden\ProxmoxAddon\Core\Models\ExtendedEloquentModel;
  4. /**
  5. * @property int $id
  6. * @property int $server_id
  7. * @property string $name
  8. * @property string $updated_at
  9. * @property string $created_at
  10. */
  11. class ServerGroup extends ExtendedEloquentModel
  12. {
  13. /** @var string */
  14. protected $table = 'ServerGroup';
  15. protected $fillable = ['id','name','server_id','updated_at','created_at'];
  16. public function scopeOfServerId($query, $id)
  17. {
  18. return $query->where("server_id", $id);
  19. }
  20. }