laravel4 「时间戳」问题
摘要:默认 Eloquent 会自动维护数据库表的 created_at 和 updated_at 字段。只要把这两个「时间戳」字段加到数据库表, Eloquent 就会处理剩下的工作。如果不想让 Eloquent 自动维护这些字段,把下面的属性加到模型类里:关闭自动更新时间戳class User ext...
阅读全文
posted @ 2014-11-09 20:56
posted @ 2014-11-09 20:56
posted @ 2014-11-08 23:17
posted @ 2014-11-07 22:58
posted @ 2014-11-07 11:16
posted @ 2014-11-06 16:59
posted @ 2014-11-06 16:46