问题描述
我有以下几点:
public function filterStudentsByDateOfInterview($interview_date)
{
//return students with the day of interview:
$students = Students::with('interviews')
->where('interviews.interview_date',$interview_date) //this returns me an error
->get();
return $students;
}
我的问题如下:
我怎样才能在采访专栏上发表where
声明?如果我不通过 where 语句,则有效。但我只需要获取日期等于我的函数参数的数据。
它返回给我的错误:
Unknown column 'interviews.interview_date' in 'where clause'
提前致谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)