Cast array_assoc to object
$convertedObject = (object) $arrayAssoc;
now can use $convertedObject->property;
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community