Closed HerrLevin closed 2 years ago
Test if it is possible to change this method with multiple parameters to a more readable version with withPivot, or if this breaks stuff.
withPivot
https://github.com/Traewelling/traewelling/blob/095119f3bf600a6eb4f258dd7bdbde51d077a728/app/Models/HafasTrip.php#L51-L53
See: https://laravel.com/docs/9.x/eloquent-relationships#retrieving-intermediate-table-columns
does not work. 🤡
Test if it is possible to change this method with multiple parameters to a more readable version with
withPivot
, or if this breaks stuff.https://github.com/Traewelling/traewelling/blob/095119f3bf600a6eb4f258dd7bdbde51d077a728/app/Models/HafasTrip.php#L51-L53
See: https://laravel.com/docs/9.x/eloquent-relationships#retrieving-intermediate-table-columns