我有一个关于Laravel 4和特定自定义SQL查询的问题。1) I think that I have to implement the api into index() method of
my controller in Laravel2) How can I write a custom sql query using Laravel<
在最近的一个项目中,我为我的一个表--用户表(称为user_id,而不是简单的id)使用了一个自定义id名。当我试图向其中插入数据时,我得到了以下错误:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause' (SQL: update users set active = 1, code = , updated_at = 2015-01-20 21:28:14 where id is