Support the ongoing development of →
Input Forms
Last updated 10 months ago.

I looked through that video and I've added appends to the end of the view so it looks like this now.

    <?php echo $employees->appends(array("srch_lname" => Session::get('srch_lname'), "srch_fname" => Session::get('srch_fname') ))->links(); ?>

It does show in the url the proper search parameters when moving on to the next page though it doesn't actually keep the parameters in the function itself.

An example being after searching for l and moving on to the second page it shows


Or am I getting the values improperly?

Last updated 7 years ago.

Why are you using session?

Why not Input::get('srch_fname')?

You're passing them in the GET url.

Last updated 7 years ago.

When I changed it to Input::get it brought me back to the same issue I'm having, it doesn't append to the url at all when navigating to the next page.

EDIT/UPDATE: I'm thinking the appends is working properly though my issue may actually be the searching function itself just not able to carry the parameters over to the next page, if that makes somewhat sense.

Last updated 7 years ago.

Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.