Support the ongoing development of Laravel.io →
Database Forms Eloquent
Last updated 2 years ago.
0

If you wat to update the value of the boolean column based on whether a checkbox is checked you can use the boolean method of the request object.

$archived = $request->boolean('archived');

https://laravel.com/docs/8.x/requests#retrieving-boolean-input-values

If you wan to update the values automatically after clicking on the checkbox you'll have to do that with javascript.

0

Hello Ordago,

I Have Done With Retrieving Value Of Checkbox, Now I Have Show All My Data In A Table, That I Have Fetch From Database Using Laravel

Now I Have To Just Update My Checkbox Value In That View Table Only Whenever Someone Click On That Checkbox, The Value Should Get Updated On Database.

Should I Have To Use Javascript?

0

There are many possible ways to update the database of checkbox and to do this larval is the best option. Instead of this you can get ideas from coursework help uk to get the correct updates on the database.

janejlocane, ronald3tolkien3 liked this reply

2

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.