laravel-responder icon indicating copy to clipboard operation
laravel-responder copied to clipboard

A Laravel Fractal package for building API responses, giving you the power of Fractal with Laravel's elegancy.

Results 43 laravel-responder issues
Sort by recently updated
recently updated
newest added

Here's the scenario: on one of my models I have an accessor to retrieve some multimedia related indirectly to it (aka I cannot setup a relation). The property given by...

bug
in progress

By using the `only` method, the package allows for filtering fields: ```php return responder()->success(Product::all())->only('id', 'name')->respond(); ``` This works similar to http://graphql.org/ - however, once you start filtering relationships things are...

feature

I see that it's possible to filter out relations, but it is not possible to apply a "filter" rule on a Transformer in a way that the resource itself will...

feature

The way "only" is available I wish there was an "except" or "exclude" method as well. That can be handy if you have a large amount of data to return...

Got this error today. Not sure if it has been fixed somewhere? Thanks ` "class": "TypeError", "message": "Flugg\\Responder\\Serializers\\NoopSerializer::null(): Return value must be of type array, null returned",` ![Screenshot 2023-10-16 at...

Laravel 10 uses /lang folder instead of /resources/lang Would be nice to set the default folder in config file if this can not be done automatically. ``` 'error_message_folder' => '/lang',...

@flugg please merge this will fix major bugs

Thanks for this very handy package. I am running into some unexpected results when using Laravel's simple pagination. The pagination data is missing from the response. ``` return responder()->success(Post::simplePaginate(15)); ```...

Flugg\\Responder\\Serializers\\NoopSerializer::null(): Return value must be of type array, null returned at /var/www/html/vendor/flugger/laravel-responder/src/Serializers/NoopSerializer.php:51) In NoopSerializer returned type of null() function is array, but function always returns null

The PR has been referenced against: https://github.com/flugg/laravel-responder/issues/194