validated('dominio'); return TenantResource::make( Tenant::query() ->with([ 'headerLogo', 'footerLogo', 'mainCarouselImages', 'menues', 'socialMedia', 'categories' => fn ($query) => $query->orderBy('nombre'), ]) ->where('dominio', $dominio) ->firstOrFail() ); } }