Andrea Giuseppe

Results 9 comments of Andrea Giuseppe

Sooo, the problem is in Firefox, with chrome I can get the text extracted

@jeromewu I'm actually on FF 73.0.1 (64bit) on Windows

Hi @jeromewu and thank you, I'm almost again on the subject and will be able to test this process again soon. Please don't close this issue.

Thanks @lindyhopchris for the fast reply, I dont use any **CollectionQuery at all, the only thing related may be the relationship method on the Container model ``` class Container extends...

If I use this typical relation: ``` /** * A container may have many rows * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function rows() { return $this->hasMany(Row::class, 'container_id', 'id'); } ```...

I was looking at the custom controller, I have a custom controller for Containers: ```

Ok, I got it, yes there is a `rows_count` attribute on the model ``` App\Models\Business\Container {#2928 ▼ // vendor/laravel-json-api/laravel/src/Http/Controllers/Actions/FetchOne.php:59 #connection: "mysql" #table: "containers" #primaryKey: "id" #keyType: "int" +incrementing: true #with:...

Well done! Im glad we found out what's the problem. We use resources cause we need to control what will be exposed to an external client by the api. Now...

```php $this->relation('rows')->withoutSelfLink()->withMeta(fn () => is_numeric($this->rows_count) ? ['rows_count' => $this->rows_count] : null), ``` one line code Thank you very much for the advice you are giving me. I will ask the...