从Laravel查询生成器到Eloquent请求:where() - > orWhere() - > get()

时间:2017-12-02 03:23:55

标签: laravel-eloquent

是否可以使用Eloquent Builder编写此查询?

$transactions = Transaction::where('client_id', $this->id)
                             ->orWhere('supplier_id', $this->id)
                             ->get();

0 个答案:

没有答案