$results = DB::table('testing') ->select( 'id', DB::raw('json_extract(params, "$.4") as number'), 'type' 'created_at' )->get();