mercredi 6 janvier 2016

How to add selected item into mysql database Laravel Schema Builder?

I used webpatser/laravel-countries

in my controlleer

$countries= DB::table('countries')->lists('name');

to select country list in my form i got all the country

{!! Form::select('country',$countries,null) !!}

in my schema now i have like this

$table->string('country');

i can select the country but when i submit country column blank. any idea ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire