Replies: 2 comments 6 replies
-
?param[]=1 or ?param=1 The logic that if not array it should return default I see it as validation... so better rename the function to arrayOr |
Beta Was this translation helpful? Give feedback.
4 replies
-
You have ->json(). That returns an array. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the
Illuminate\Http\Concerns\InteractsWithInput
trait, we can see some helpers to retrieve data already typed like:I was wondering if it could be a good idea to add a method for an array:
Something like this:
Let me know, if it makes sense to have a feature like this.
Beta Was this translation helpful? Give feedback.
All reactions