Add PropValueResource for managing property values; update TenantResource to include collapsed props data

This commit is contained in:
2026-06-22 16:19:24 -03:00
parent 55694b2048
commit 3bb8fbfd2f
2 changed files with 52 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Domains\Tenant\Resources;
use App\Domains\Prop\Resources\PropValueResource;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
@@ -20,6 +21,7 @@ class TenantResource extends JsonResource
'codigo' => $this->codigo,
'nombre' => $this->nombre,
'dominio' => $this->dominio,
'props' => PropValueResource::collapsedFromPropable($this->resource),
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
];