Some extra Laravel collection methods.
composer require chrisrhymes/extra-collect
collect(['a', 'b', 'c'])->prefix('test');
// ['testa', 'testb', 'testc']
collect([['name' => 'a'], ['name' => 'b'], ['name' => 'c']])->prefix('test', 'name');
// [['name' => 'testa'], ['name' => 'testb'], ['name' => 'testc']]
collect(['a', 'b', 'c'])->suffix('test');
// ['atest', 'btest', 'ctest']
collect([['name' => 'a'], ['name' => 'b'], ['name' => 'c']])->suffix('test', 'name');
// [['name' => 'atest'], ['name' => 'btest'], ['name' => 'ctest']]
collect(['a', 'b', 'c'])->doubleQuote();
// ['"a"', '"b"', '"c"']
collect([['name' => 'a'], ['name' => 'b'], ['name' => 'c']])->doubleQuote('name');
// [['name' => '"a"'], ['name' => '"b"'], ['name' => '"c"']]
composer test