thephpleague-fractal Questions

2

Solved

Quick question, what is the difference between Eloquent: API Resources and Fractal? To me, it looks like the same thing?
Impetigo asked 18/2, 2019 at 13:49

3

Solved

I was wondering if it is possible to define different data for item resource and collection resource. For collection I only want to send ['id', 'title', 'slug'] but the item resource will contain...
Featherbrain asked 24/9, 2017 at 8:39

2

Solved

I have been using laravel to build my APIs. I use transformers to tranform data from model object. Now instead of database, I have a response coming from an API as the data source and I want to tr...

1

This is my PostTransformer where I have included relationship public function includeComments(Post $post) { if (($post->is_paid == 1 && $post->haspaid == 1) || ($post->author ==...
1

© 2022 - 2024 — McMap. All rights reserved.