The easiest way to get the raw SQL output of this query, is by using the toSql() method: use App\User; User::whereHas( 'orders.payments',fn ($q) ...
確定! 回上一頁