-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Laravel Octane Issue request param #59
Comments
It may be an issue in dingo then @lam0819 , what if you just used |
$request->input is null too. i have tried reset , reinit the provider after requestreceived but no luck. |
@lam0819 One more, what if you use the global helper |
I try following $api->post('test/{slug}', function(Request $request , $slug){
dd('Full Request:', [
'$_SERVER[LARAVEL_OCTANE] -> s' => (isset($_SERVER['LARAVEL_OCTANE'])),
'$request?->route()?->parameters() -> route' => $request?->route()?->parameters(),
'$request?->input() -> input' => $request?->input(),
'request()->input() -> input2' => request()->input(),
'$slug -> slug_param' => $slug ?? '',
'$request->slug -> request_slug' => $request->slug,
'request()->slug -> request_slug2' => request()->slug,
]); |
Thanks, I will investigate what's going on here, I guess it's probably something to do with how bindings work with dingo in octane. My plan is to swap out dingo with a more modern solution anyway, so that may be a better way to address it than to investigate what's going on within of that package. I guess if you need a quick workaround, you can just then use the injected parameter to the controller? |
injected back ? not sure how. or i can do it in middleware? |
Sorry perhaps I was not clear, in the very last screenshot you posted, the |
When i am using laravel octane, I figure out that the param binding is missing now.
How can i solve it?
However
Also, I confirmed that if i not using dingo-api, it work perfectly.
The text was updated successfully, but these errors were encountered: