You can display workoutdays for routines that belongs to user this way
$routines = $user->routines;
@foreach ($routines as $routine)
/* here you can use $routine->workoutdays */
@endforeach
In
$user->routines->workoutdays;
you are trying to get collection property from collection, it is not possible.
If user had only one routine it will be possible, so you need to iterate through the user routines and display workout days for each routine separately.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community