toAary In Query Builder In laravel code example Example: return query builder result to array $result = DB::table('user')->where('name',=,'Jhon')->get();