jeudi 15 novembre 2018

neet to get next Task after the one in the url

this for each gave me task where task slug is the same as url now I need to get the first task after this one so I make redirect link later

@foreach ($Tasks as $Task)

   @if (  $Task->slug == Request::segment(5) )

     <h2>  </h2>

  @endif

@endforeach

I need to get the task how is after the one in url from foreach



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire