How to retrieve a result set from a raw query as an array instead of an object in Laravel 3

前端 未结 0 1132
生来不讨喜
生来不讨喜 2021-02-11 17:16

By default, Laravel\'s raw query methods return results as arrays of stdClass objects:

Array
(
    [0] => stdClass Object
        (
            [id] => 1
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题