Top "Laravel-resource" questions

Laravel transformer vs resource

I am little bit confused about the difference between Laravel eloquent resource and transformers. When i should use resource and …

php laravel laravel-resource
Laravel - How to convert API Resource to array recursively?

I'm using Laravel API Resource and want to convert all parts of my instance to an array. In my PreorderResource.…

php laravel laravel-5.6 laravel-response laravel-resource
Call to a member function first() on null in laravel resource

i try to build a customized response in my resource like this: class ApplicationResource extends JsonResource { /** * Transform the resource into …

laravel laravel-resource