Support the ongoing development of →
Input Views Forms
Last updated 2 years ago.

Hi. I am having the exact same issue. Any updates to this thread?


@mckibbe, I still have this issue. If you find a solution, please let me know.


After tinkering with this a bit I moved a few snippets around and the problem seems to have disappeared. I feel there must have been some JavaScript error preventing the value from being posted properly. Everything seems to be working as expected. @mckibbe, I would suggest creating a new page with a blank form and work your way up from there. Make sure your javascript debugger is not throwing any unexpected errors and this should work fine.


For those who might face this situation, the solution is quite easy, use this syntax

$myModel->active = (Input::has('active')) ? 1 : 0;

So using Input::get caused the problem.

Last updated 8 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.

© 2024 - All rights reserved.