MySqlProcessor.php 411B

1234567891011121314151617181920
  1. <?php
  2. namespace Illuminate\Database\Query\Processors;
  3. class MySqlProcessor extends Processor
  4. {
  5. /**
  6. * Process the results of a column listing query.
  7. *
  8. * @param array $results
  9. * @return array
  10. */
  11. public function processColumnListing($results)
  12. {
  13. return array_map(function ($result) {
  14. return ((object) $result)->column_name;
  15. }, $results);
  16. }
  17. }