Adding Our Conditional Check | Laravel Paginator Pretty URLs
Now we need to add that conditional check we talked about earlier: 1 ... 2 if ( count ( $ parameters ) > 0 ) 3 { 4 $ pageUrl .= ' ? ' . http_build_query ( $ parameters , null , ' & ' ) ; 5 } 6 7 $ pageUrl .= $ this -> buildFragment ( ) ; 8 ... And...