laravel-responder
laravel-responder copied to clipboard
A Laravel Fractal package for building API responses, giving you the power of Fractal with Laravel's elegancy.
Hello, I have Transformers: ``` class ModelTransformer extends Transformer { protected $load = [ "organisation" => OrganisationTransformer::class ]; ``` and ``` class OrganisationTransformer extends Transformer { protected $relations = [...
Hi @flugger, this is an awesome project! Btw; I have 2 models that related to each other with custom resourcekey, but I cannot have my custom resourcekey for the related...
Hi! I was looking alternatives for API development and came across this gem. Unfortunately, one feature I am trying to find is loading relationships for models via query string. I...
Hello, Use of ConvertToSnakeCase (laravel 5.8) throws an error "Declaration of Flugg\Responder\Http\Middleware\ConvertToSnakeCase::cleanArray(array $data) should be compatible with Illuminate\Foundation\Http\Middleware\TransformsRequest::cleanArray(array $data, $keyPrefix = '')". To resolve method should be declared: `protected function...
One of the distinct features of Laravel 5.5 API resources is the ability to use conditional attributes: https://laravel.com/docs/5.5/eloquent-resources#conditional-attributes. For simple `when` and `mergeWhen` this is simply to avoid if-clauses and...
Responder version: 3.0.5 Laravel version: v5.5.45 In the config file, the documentation for `filter_fields_parameter` says: >The package can automatically filter the fields of transformed data from a query string parameter...
Kinda related to #111 because i am dealing with polymorphic relatioships too. I am trying to override include method inside the transformer and query parameters are not passing in to...
I can't find it is intended behavior, but it seems worth to reporting. ```php // in my controller public function index() { // find Users with user's photo. // SELECT...
Hi @flugger, Me again, what about the testing trait? I see you removed it from the documentation and it doesn't work out of the box with the default laravel installation,...
Hi. You are cameCasing relation attribute names in several parts, for example: ``` /** * Eager load all requested relations except the ones defined as an "include" method * in...