You append your filter to the query string.
In controller:
$pagelinks = array('psch' => $dogsearch, 'aval' => $aval);
// or whatever your data is
In the view:
echo '<td>' . $dogs->appends($pagelinks)->links() . '</td>';
Convert to blade, example is not blade.
Taylor has example of appending query string in the docs.
Appending To Pagination Links
You may append to the query string of pagination links using the appends method. For example, to append sort=votes to each pagination link, you should make the following call to appends:
{{ $users->appends(['sort' => 'votes'])->links() }}
Also if not using query string, you have to pass this stuff as parameters. You need to study the docs if that is the case and learn how to do this stuff.
https://laravel.com/docs/5.7/routing#route-parameters
It's all there in the docs.
Passing a basic parameter
View (convert to blade):
<?php $myvar = 'whatever'; ?> // whereever the variable comes from, it's your app
<a href="<?php echo DIR . 'mytest/' . $myvar; ?>">Click</a></td>
Route:
Route::get('mytest/{myvar}', 'DogController@myTest');
Cotroller:
public function myTest($param = null)
{
echo $param;
}
It's just that easy.
There have been many lengthy discussions on parameters and routing here on the forum FYI.
Also one of the answers had this: https://github.com/spatie/laravel-paginateroute