Support the ongoing development of Laravel.io →
Database Forms Eloquent
Last updated 9 months 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...

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.

2

Sign in to participate in this thread!

LaraJobs

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.

© 2023 Laravel.io - All rights reserved.