I have an eloquent model named Eloquent:
Products::where(\"actice\", \"=\", true)->get()->toArray();
Now I want to add join-statement
On Laravel 5.4 (I don't know if earlier version also apply) you can do that with the select method:
select
Products::where("actice", "=", true) ->joinWithTags ->select('tags.name AS tag_name', 'products.*') ->get();
At least for me this is cleaner.