I want to be able to display the course name though the relationship
I have bookings that holds the location id the locations table holds the course id that then links to the course table which has the name how can I link the two together?
If you have a booking instance, then you can get the course name using:
$booking = Booking::with('location.course')->find($id); // eager loads the two relations (presuming you have relationships set up)
$booking->location->course->title;
Based on the ERD you have given, this would be the wrong relationship type. You have a one-to-many between booking and location, and another between location and course