If you want to select columns from related tables like this you have to join the tables manually - doing with() does not work for this. Also, when selecting from another table you need to add the other table in front of the column, i.e.
anlutro, do mean something like this?
That should work, yes. You can also replace
How would I specify ('invoice AS i') if I switch DB::table(..)-> with Model:: ?
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us