Support the ongoing development of Laravel.io →
Input Views Forms
Last updated 1 year ago.
0

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

0

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

0

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.

0

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.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.