-
Notifications
You must be signed in to change notification settings - Fork 65
Improvements and compatibility with Laravel 5.5 #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- including firstOrFail() based on ID for Restfull apis
@robsontenorio Nicely done. Looks like there are several of us who are finding this library valuable. @selahattinunlu Are you still maintaining this project? Another improvement I have found, is to turn the result type into a query param so you can pass paginate, list, or get to an endpoint. Not sure about creating a merge request here if its not maintained but here it is if @robsontenorio is interested: walliby@349dfb5 |
@walliby that methods already exists:
|
Yes, I just added a query string param for them so you can use all three in the same endpoint
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: robsontenorio <[email protected]>
Sent: Monday, November 6, 2017 6:57:39 AM
To: selahattinunlu/laravel-api-query-builder
Cc: Joshua Wallace; Mention
Subject: Re: [selahattinunlu/laravel-api-query-builder] Improvements and compatibility with Laravel 5.5 (#34)
@walliby<https://github.com/walliby> that methods already exists:
* get()
* paginate()
* lists() ( uses pluck() )
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#34 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFGf3VlQdCCToV7oPXzIJ8VruS-BuCxkks5szvQzgaJpZM4QJyqA>.
|
I understand. But in my case I m working with restfull endpoints , so my urls hits two diferents methods on Models:
|
I see, you always paginate your /users endpoint whereas we have a need to get all results without pagination sometimes.
Get Outlook for Android<https://aka.ms/ghei36>
From: robsontenorio
Sent: Monday, November 6, 7:42 AM
Subject: Re: [selahattinunlu/laravel-api-query-builder] Improvements and compatibility with Laravel 5.5 (#34)
To: selahattinunlu/laravel-api-query-builder
Cc: Joshua Wallace, Mention
I understand. But in my case I m working with restfull endpoints , so my urls hits two diferents methods on Models:
/users/99 => get() /users?includes=city => paginate()
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#34 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFGf3TwlDsF-Gi7ZYPi_ndR9tV6_XNvPks5szv6ggaJpZM4QJyqA>.
|
@walliby nice, just waiting for @selahattinunlu when he got enough time to merge it :) |
Hey @selahattinunlu, are you able to merge this soon? I'm needing to add additional query params into the Request using the RequestCreator and I'm getting the PATH_INFO error. |
Package is not maintained anymore. Anyone willing to take over? Also wating for these changes... |
@wgmv as you said "Package is not maintained anymore". An alternative can be https://github.com/spatie/laravel-query-builder . It seems work well. |
Some of this changes are based on another forks who was not submitted by authors.
LARAVEL 5.5
IMPROVEMENTS
For non existing ID, firstOrFail() throws ModelNotFoundException
Model Company.php