$account = Account::where('account_id', '=', $account_id)->first();
$account->username = 'New_Username';
$account->password = 'Password';
$account->save();
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'
왜 이런 일이 발생합니까?Laravel3 : UPDATE 문에서 Eloquent/Fluent가 실패 함
이 테이블은 ID 열이 있습니까? –
아니요. 자동 증분으로 account_id. – Aristona