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

Reformat your code man. Nobody should try read that mess. I'm not trying to be mean, I will be happy to help, but I'm not spending my morning counting peoples curly braces.

Last updated 1 year ago.
0

Sorry Man, this is my code

for my controller

$array = array(Input::all());
            for ($i = 0; $i < count(array('$Input::all()')); $i++)
            {
                $values = new question;
                $values->core_values = $core_values[$i];
                $values->behavioral = $behavioral[$i];
                $values->rating = $rating[$i];
                $values->save();

            Session::flash('message', 'Added!');
            return Redirect::to('evaluation');
            }

and this is my form

{{ Form::text('core_values[]', Input::old('core_values[]')
{{ Form::textarea('behavioral[]', Input::old('behavioral[]')
{{ Form::text('rating[]', Input::old('rating[]'), array('placeholder' => 'Percentage')) 

HOPE this the ryt sir.. Sorry Help Me sir. Thanks

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jovstudios jovstudios Joined 23 Apr 2014

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.