Merge multiple JSON object into a single in Laravel Eloquent collection
<p>I'm having an issue with merging multiple JSON object into a single with the Laravel Eloquent collection.</p>

<p>When I run the following code:</p>

<p><code>return Project::all();</code></p>

<p>I got this:</p>

<pre><code>[
    {
        "created_at": "2016-02-17 15:08:11",
        "description": "first description",
        "id": 1,
        "name": "John Doe",
        "updated_at": "2016-02-17 15:08:11"
    },
    {
        "created_at": "2016-02-17 15:08:31",
        "description": "second description",
        "id": 2,
        "name": "Jane Doe",
        "updated_at": "2016-02-17 15:08:31"
    }
]
</code></pre>

<p>However, I'm trying to merge this multiple JSON object into a single like the following:</p>

<pre><code>{
    "0": "John Doe",
    "1": "Jane Doe"
}
</code></pre>

<p>This driving my crazy. Is there anyone can assist how may I achieve this? <em>The key is not important here.</em></p>