Friday, March 10, 2017

Laravel 4 pass input from blade to controller

I have a project in laravel 4.

In my blade file i have:

<div class="col-sm-12">
            <a href="" data-limit="12" data-gap="12">Show more </a>
</div>

I want to pass my limit and gap to the controller. In the controller i use Input::get('limit'); but i get back a null. Even Input::all() returns null.

Any tips?

Thank you!



via user3844579

Advertisement