My foreach return a different array when there is different $Tag i need My Foreach to return all tasks in 1 array not multi because I can't sort them correctly
@foreach ($Paths->pathtags as $Tag)
@foreach ($Tag->Tasks as $Task)
@endforeach
@endforeach
in Example
Tag Name : Tag1 , Tag2
Task : id 11
Task Name : Task number 1
................................................
Tag Name : Tag4 , Tag6
Task : id 7
Task Name : Task number 2
................. Tag Name : Tag4 , Tag6
Task : id 8
Task Name : Task number 3
So if the Tags is different I can't sort them only tasks with same tags is able to be sort
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire