Support the ongoing development of Laravel.io →
posted 7 years ago
Last updated 2 years ago.
0

Cast array_assoc to object

$convertedObject = (object) $arrayAssoc;

now can use $convertedObject->property;

Last updated 7 years ago.
0

The request() method in your controller echos $post rather than returning it. This means that the $response in your test will not have anything in it to json_decode

By:Xtreem Solution

Highly Skilled Laravel Developer

Dedicated PHP Developer

Last updated 6 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Uriah Ahrak u1r1val Joined 21 Oct 2017

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.