我想更新使用雄辩我的数据,但它给了我一些错误:雄辩的ORM没有保存价值laravel
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'od_logo.id' in 'where clause' (SQL: select * from `od_logo` where `od_logo`.`id` = 1 limit 1)
这里是我的代码:
$logo = Logo::find($id);
$logo->logo_logoimg_name = Input::get('logo_name');
$logo->logo_logoimg_path = $logo_destinationPath . $logo_filename;
$logo->logo_faviconimg_name = $favicon_destinationPath . $favicon_filename;
$logo->save();
请找我哪里错了在此代码中
被称为'id'或别的东西你的主键列? – lukasgeiter 2015-02-11 19:21:37
我的主键叫logo_id – okconfused 2015-02-11 19:25:35