I have this array which I intend to convert to an object for ease of use in my laravel blade but accessing the properties keeps throwing errors.
$applicationDetail = (object) array([
'completedApplication' => 3,
'incompleteApplication' => 4,
'totalApplication' => 5,
]);
dd($applicationDetail->completedApplication);
Running the code block gives the error:
Undefined property: stdClass::$completedApplication
What am I doing wrong please?