Laravel分页评论

I'm trying to "remove" the thread of my application when the pagination is used.

So I have a thread and the URL to that tread is http://localhost/rebelbb/Thread-test. When I want to Go to paginate so http://localhost/rebelbb/Thread-test?page=2 Then It needs to hide the thread. What I got now:

@if(Request::url() == Config::get('app.url').'/Thread-'.$threads->title)

But that doesn't work...

So anyone who has an tip?

How am I be able to hide the topic when the URL isn't http://localhost/rebelbb/Thread-test or http://localhost/rebelbb/Thread-test?page=1 ?

You can check in the view if there is page parameter set by using:

@if(Request::has('page'))

or you can check if the page is not the first one by doing:

@if(Request::get('page', 1) != 1)