laravel-orion
laravel-orion copied to clipboard
The simplest way to create REST API with Laravel
Can we implement this feature? Thank you for your great project.
Hello there, On a Many To Many resource it's written that you can filter by pivot value but when you want to filter on a pivot of a relation it...
I recently used Laravel Orion, and aside from formal documentation, I didn't find many resources to deeply illustrate the package. It would be fantastic if there were a default UpdateOrInsert...
Hi, The specification generated by "php artisan orion:specs" seems to use enum for include query param values. ``` public function includes(): array { return ['teachers', 'students']; } ``` The above...
https://jsonapi.org/format/#fetching-sparse-fieldsets > A client MAY request that an endpoint return only specific fields in the response on a per-type basis by including a fields[TYPE] parameter. Can we implement this usage...
When making a request that's validated with Orion, using **Octane**, the second request skips validation. This is likely due to the nuances in [making a package octane ready](https://laravel.com/docs/8.x/octane#dependency-injection-and-octane). I did...
Laravel API resources provide the ability to alias database fields in the JSON response, e.g. ``` public function toArray($request): { return [ 'currency_id' => $this->currency_id, 'currency_name' => $this->curr_name, // currency_name...
Hello, While using Orion I spotted a point that could be enhanced. I have several entities that are related to the `Company` model like `companies/{company}/messages` or `companies/{company}/documents`. I have for...
I have an api for providing localization information and shaping data. In this case I don't want to always include points for a shape for example when doing the regular...
In Laravel you can use the following code to gather the amount of relationship items without loading the full model/data: ```php $threads = Thread::withCount(['posts'])->get(); ``` We currently have: ```php protected...