convert array into object laravel code example Example: php convert array to object $object = (object) $array;