Question:
I hope to use Laravel’s ORM and query construction (without using raw native SQL statements) to use a concat SQL statement like this: select a,b,concat(a,b) from table, but it seems that it is not found. For relevant methods to express such sentences, please ask experts who have experience in this field. It is in the following format:
Table::where(...)->get();
Reply content:
Question:
I hope to use laravel’s ORM and query construction (without raw native SQL statements) to use concat SQL statements like this: select a,b, concat(a,b) from table, but I found that there seems to be no relevant method to express such a statement. I would like to ask someone who has experience in this area for advice. It is in the following format:
Table::where(...)->get();