laravel框架查询数据集转为数组

 $website_data = DB::table('fb_website')->where('website_status',1 )->get()->map(function ($value) {return (array)$value;})->toArray();
        

 

你可能感兴趣的:(框架,laravel)