This is Laravel collection question. I make a standard query to the database and get a collection. So far no problem.

Here result:

```
"id" => 1
"Certificate" => "001"
"Name" => "BTYUUU"
"Code" => "58X-AAAA-1G"

"id" => 2
"Certificate" => "002"
"Name" => "BTYSSS"
"Code" => "58X-SSS-1G" 

```

But I want different arrange of result like this:

```
    [58X-AAAA-1G] => Array
        (
            [id] => 1
            [Certificate] => 001
            [Name] => BTYUUU
            [Code] => 58X-AAAA-1G
        )

    [58X-SSS-1G] => Array
        (
            [id] => 2
            [Certificate] => 002
            [Name] => BTYSSS
            [Code] => 58X-SSS-1G
        ) 

```

This is just draft. May be list in object is.
Thanks for the help or advice