public function article_imgs_show_all_img_article() { $rs = Articles::limit(40)->get(); foreach ($rs as $key => $value) { $array = json_decode($value->article_imgs, true); foreach ($array as $key2 => $value2) { } } //============ ============ // $json = json_encode($return); // Lưu file ngoài root // file_put_contents(time().".json", $json); dd($return); }