← prev | next →
AtsuErnest 2022-07-15 19:01:05
and the problem has to do with recursion?
interesting
DesolatorMagno 2022-07-15 19:09:01
smokey_18 2022-07-15 18:56:12
The issue is in screenshots
https://stackoverflow.com/questions/61867044/how-to-solve-the-process-has-been-signaled-with-signal-11-snappy-library
Try with a very very minimal view, something like <h1>Hello World</h1>
Just to test if it work.
smokey_18 2022-07-15 19:17:25
DesolatorMagno 2022-07-15 19:09:01
Try with a very very minimal view, something like <h1>Hello World</h1>
Just to test if it work.
it works with this
smokey_18 2022-07-15 19:17:39
but not loading the pdf template by Loadview
DesolatorMagno 2022-07-15 19:18:45
Try what you have but remove any external CSS.
etekumoses 2022-07-15 19:57:42
Hey team how can i save all radio button values to database
etekumoses 2022-07-15 19:58:07
i have a form with a for each loop having radio buttons but i dont know how i can loop through
etekumoses 2022-07-15 19:59:20

and save the data
etekumoses 2022-07-15 19:59:30
and the list can be big
etekumoses 2022-07-15 20:01:29

this is what i did with the submission
etekumoses 2022-07-15 20:02:09
<div class=”form-check “>
<input class=”form-check-input” type=”radio” name=”{{$position->id}}” id=”{{$can[‘id’]}}”>
<label class=”text-muted” for=”{{$can[‘id’]}}”>
{{ $can[‘name’] }}
</label>
</div>
etekumoses 2022-07-15 20:02:20
this is my form code for that checkbox
etekumoses 2022-07-15 20:04:04
someone kindly help me out
monaTec 2022-07-15 20:05:23
Hi, my name is Micah
I’m a Fullstack LARAVEL Developer who’s in need of a full-time Job. I have over 3yrs experience building web application with TailwindCSS, bootstrap, HTML, jQuery, WordPress, Laravel, vanillaJS, UIUX design, Figma, OOP, MVC etc.
*Check my portfolio*
mivex.herokuapp.com
*Projects…*
ekodrop.ng
examco.org.uk
lifeyieldersfoundation.org
lynxlaboratories.com
etc.
*My GitHub*
github.com/mike-ske
DM me if you have any job for me or project contracts. Reach me on micahalumona@gmail.com
👍
mike-ske – Overview –
GitHubmike-ske has 41 repositories available. Follow their code on GitHub.
etekumoses 2022-07-15 20:06:01
etekumoses 2022-07-15 20:02:09
<div class=”form-check “>
<input class=”form-check-input” type=”radio” name=”{{$position->id}}” id=”{{$can[‘id’]}}”>
<label class=”text-muted” for=”{{$can[‘id’]}}”>
{{ $can[‘name’] }}
</label>
</div>
my table has only voter_id and candidate_id
etekumoses 2022-07-15 20:06:13
monaTec 2022-07-15 20:05:23
Hi, my name is Micah
I’m a Fullstack LARAVEL Developer who’s in need of a full-time Job. I have over 3yrs experience building web application with TailwindCSS, bootstrap, HTML, jQuery, WordPress, Laravel, vanillaJS, UIUX design, Figma, OOP, MVC etc.
*Check my portfolio*
mivex.herokuapp.com
*Projects…*
ekodrop.ng
examco.org.uk
lifeyieldersfoundation.org
lynxlaboratories.com
etc.
*My GitHub*
github.com/mike-ske
DM me if you have any job for me or project contracts. Reach me on micahalumona@gmail.com
👍
yes first help me here
monaTec 2022-07-15 20:07:05
@Emily54y check DM
etekumoses 2022-07-15 20:10:51
@monaTec ???
monaTec 2022-07-15 20:12:17
@etekumoses what’s the issue
etekumoses 2022-07-15 20:13:01
etekumoses 2022-07-15 19:59:20
and save the data
i want to save this to the databse which takes candidate_id
etekumoses 2022-07-15 20:15:09
etekumoses 2022-07-15 20:15:21
this is my database table structure
monaTec 2022-07-15 20:18:42
etekumoses 2022-07-15 20:02:09
<div class=”form-check “>
<input class=”form-check-input” type=”radio” name=”{{$position->id}}” id=”{{$can[‘id’]}}”>
<label class=”text-muted” for=”{{$can[‘id’]}}”>
{{ $can[‘name’] }}
</label>
</div>
Where is your value attributes in the radio button, that’s what holds the data u want to send to DB
etekumoses 2022-07-15 20:23:04
<div class=”form-check “>
<input class=”form-check-input” type=”radio” name=”{{$position[‘name’]}}” id=”{{$can[‘id’]}}” value=”{{$can[‘id’]}}”>
<label class=”text-muted” for=”{{$can[‘id’]}}”>
{{ $can[‘name’] }}
</label>
</div>
etekumoses 2022-07-15 20:24:12
i have just added but what should be the name in the validator and also here in the input
etekumoses 2022-07-15 20:26:09
etekumoses 2022-07-15 20:23:04
<div class=”form-check “>
<input class=”form-check-input” type=”radio” name=”{{$position[‘name’]}}” id=”{{$can[‘id’]}}” value=”{{$can[‘id’]}}”>
<label class=”text-muted” for=”{{$can[‘id’]}}”>
{{ $can[‘name’] }}
</label>
</div>
@monaTec what do you say
monaTec 2022-07-15 20:28:54
etekumoses 2022-07-15 20:24:12
i have just added but what should be the name in the validator and also here in the input
Name should not be dynamic, can be the name for that input
etekumoses 2022-07-15 20:29:38
for example ? cause i currently gave name=”{{$position->name}}”
etekumoses 2022-07-15 20:30:13
if it was one position it would have been easy but man its hard for me when they are many
etekumoses 2022-07-15 20:31:44
So how can i handle this
monaTec 2022-07-15 20:31:56
What
monaTec 2022-07-15 20:33:29
Are you fecthing the inputs from Backend
etekumoses 2022-07-15 20:35:15
nope
monaTec 2022-07-15 20:35:52
Then how many inputs are we talking about??
etekumoses 2022-07-15 20:35:54
I want to just store the candidate ids
etekumoses 2022-07-15 20:36:55
etekumoses 2022-07-15 19:59:20
and save the data
This is a voting system the position and candidates are fetched from backend but now i want to store the selected candidate_ids from each position
monaTec 2022-07-15 20:40:39
Ok pass the can_id to the value attributes, hardcore the name attributes, post the data to controller and ddump the data in browser and see if the
monaTec 2022-07-15 20:40:59
Candidate Id is among the array
monaTec 2022-07-15 20:41:16
***hardcode
etekumoses 2022-07-15 20:43:26
ok
etekumoses 2022-07-15 20:44:08
etekumoses 2022-07-15 20:44:21
the issue is here now when i hardcode it it just select one only
monaTec 2022-07-15 20:45:38
Yes that’s how it should select naw
monaTec 2022-07-15 20:45:51
How do u want to select it before
etekumoses 2022-07-15 20:54:08
you see president is different from vice but when i select president and decide to go to vice it leave president blank
etekumoses 2022-07-15 20:54:25
That what i meant by allowing to select only one
etekumoses 2022-07-15 21:01:23
Currently its only storing one value what of the rest
etekumoses 2022-07-15 21:01:35
guys i seriously need some assistance here thanks
etekumoses 2022-07-15 21:02:48
DesolatorMagno 2022-07-15 19:18:45
Try what you have but remove any external CSS.
Manon some help here
monaTec 2022-07-15 21:02:52
etekumoses 2022-07-15 20:54:08
you see president is different from vice but when i select president and decide to go to vice it leave president blank
Ok if I get u,
← prev | next →