在我的一個laravel頁面中,我正在更新記錄。表單被綁定到模型,以及各個領域,不同的是那些我提出一個使用列表選擇填充從數據庫中選擇適當的更新:使用laravel的列表不能正常工作更新Laravel中的記錄
{{ Form::select('resume_id', $resume_lists) }}
我只是不知道爲什麼這些不會更新。他們正在從mySQL中提取適當的值。有任何想法嗎?
謝謝。
我有我的路線代碼,而不是在控制器
Route::get('application/edit/{id}', array('as' => 'application.edit', function($id)
{
$user = Auth::user();
$company_lists = Company::where('user_id', '=', $user->id)->get()->lists('company', 'id');
$resume_lists = Resume::where('user_id', '=', $user->id)->get()->lists('name', 'id'); //changed resume to name
$companies = Company::where('user_id', '=', Auth::user()->id)->get(); //just added
//$currentintdate=$application['followupBy']; /////
Session::put('appid', $id); /////
return View::make('application-edit', array('company_lists' => $company_lists), array('resume_lists' => $resume_lists))
->with('application', Application::find($id));
}));
你能告訴我們你的控制器的代碼嗎? – James