Laravel -Roundtrips creation

Create a Query or Function using PHP, Mysql and or Laravel to group individual stock trades into a single row for viewing