Snapey

(assuming php 7)

    public function show(Hour $post){

    $date = request()->date ?? 0;


    return view('your.view.name.here')->with(compact('date'));

    }

view


@if($date>0)

    <a href='/?date={{ $date-1 }}'>Previous</a>

@endif 

    <a href='/?date={{ $date+1 }}'>Next</a>

Return to Thread...