Postgresql Laravel雄辩的查询生成器访问postgres复合列属性

Postgresql Laravel雄辩的查询生成器访问postgres复合列属性,postgresql,laravel-5,eloquent,laravel-5.8,composite-types,Postgresql,Laravel 5,Eloquent,Laravel 5.8,Composite Types,我使用的是Laravel 5.8和Postgres 11/Postgis 2.5.2,有一个stdraddr列,它是一个复合类型。我可以直接在表上成功运行如下查询: select * from addresses where (address).house_num like '%2840%' 访问地址列中的列 我还没有通过以下尝试将这一问题转化为雄辩的问题: Address::where('Address.house_num','LIKE',$houseNum)->get() Address:

我使用的是Laravel 5.8和Postgres 11/Postgis 2.5.2,有一个
stdraddr
列,它是一个复合类型。我可以直接在表上成功运行如下查询:

select * from addresses where (address).house_num like '%2840%'
访问地址列中的列

我还没有通过以下尝试将这一问题转化为雄辩的问题:

Address::where('Address.house_num','LIKE',$houseNum)->get()

Address::where('(Address).house_num',LIKE',$houseNum)->get()

Address::where('Address[house_num],'LIKE',$houseNum)->get()

Address::where('Address','LIKE',$houseNum)->get()

Address::where('house_num','LIKE',$houseNum)->get()

Address::whereRaw(“(Address).house_num LIKE{$houseNum}”)->get()

还有一些抛出了SQLSTATE异常。$houseNum变量包含通配符。有人使用过有说服力的复合类型吗

我已经能够运行一个原始查询:
\DB::select('select*from addresses where(address).house_num LIKE?',[$houseNum])
,但很好奇Elotent是否能做到这一点?

whereRaw()
与原始查询中的代码和绑定一起使用:

Address::whereRaw('(Address).house_num LIKE?',[$houseNum])->get();
whereRaw()
与原始查询中的代码和绑定一起使用:

Address::whereRaw('(Address).house_num LIKE?',[$houseNum])->get();