标签: laravel
<a>
如何在laravel查询构建器中执行相同的操作?
答案 0 :(得分:0)
您可以尝试这样:
$name = $_POST['name']; $where[] = ['authors.name ', $name]; $data = \DB::table('authors') ->join('quotes', 'quotes.author_id', '=', 'authors.id') ->where($where) ->get();