Support the ongoing development of Laravel.io →
posted 10 years ago
Input
Last updated 2 years ago.
0

try this:

{{ Form::select('abbonement-soort', array_merge(array('0' => 'Select abbonement-soort' , 'Jaarabbonement - groot' => 'Jaarabbonement - groot' , 'Jaarabbonement -middel' => 'Jaarabbonement -middel', 'Jaarabbonement - klein' => 'Jaarabbonement - klein', 'knipkaart' => 'knipkaart')),Input::old('abbonement-soort')) }}

Last updated 2 years ago.
0

Thanks it do not solve the problem. I still see the error message.

When I do this :

return Input:all(); 

it gives this output:

{"_token":"xxxxxx","abbonement-soort":"Jaarabbonement - klein","bedrag":"4"}

it seems to me that somewhere down this line there must be a error ;

$abonnementen->soort = Input::get('abbonement-soort'); 
$abonnementen->bedrag = Input::get('bedrag'); 

Roelof

Last updated 2 years ago.
0

Have you try:

$input = Input:all();

$abonnementen->soort = $input['abbonement-soort']; $abonnementen->bedrag = $input['bedrag'];

Last updated 2 years ago.
0

Solved that one. The error was in the model where abbonementen was a array.

But now I see a message that the table abbonementen is not found. But when I look with phpadmin it is there :(

Last updated 2 years ago.
0

And like this?

$abonnementen = New Abbonement(); $abonnementen->soort = Input::get('abbonement-soort'); $abonnementen->bedrag = Input::get('bedrag'); $abonnementen->save();

Last updated 2 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.