Support the ongoing development of Laravel.io →
Requests Testing
Last updated 2 years ago.
0
$this->json('post', route('oauth.access_token'), $body);

means that you're sending a json body with the request, but on the controller dd($request->request); means you're checking the form request.

try this instead:

dd(Request::json());
Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

edcs edcs Joined 4 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.