Let's now demo the sort.
We'll need to dive into the FlightRepository and update all the alias references to the flights table i.e. the letter 'f' and instead I'll use a $tableName everywhere which has a value of 'flights'.
Again, I'd recommend referring to the attached lesson file to see exactly what you need to do.
Branch: https://github.com/GaryClarke/php-api-pro/tree/68-sorting-records
0 comments