vendredi 16 novembre 2018

need to get next Task in foreach

My For each return the task same as in URL Now I need to get the next task

 @foreach ($Tasks as $Task)
    @if ($Task->slug == Request::segment(5))
      <h2></h2>
    @endif

    @if ($loop->remaining)
      <p>Next Task is: </p>
    @endif
@endforeach

I get the task in URL so I need to get next task in foreach but it returns empty



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire