【发布时间】:2015-01-15 16:22:44
【问题描述】:
我遇到了这个
$user = User::whereConfirmationCode($confirmation_code)->first();
在 Laravel eloquent ORM 中,你能像上面那样在 where 语句中附加表格行名吗?
在我看到这个之前,我会写
例如:$user = User::where('confirmation_code', '=', $confirmation_code)->first();
谢谢
【问题讨论】: