그래서 코드 점화 장치와 Eloquent를 사용하여 흥미로운 버그를 얻고 있습니다.Eloquent 찾을 수없는 코드 점화 장치 모델
class Brand_model extends MY_Model {
public function size()
{
return $this->hasOne('Size');
}
}
그 라인 오류 내 사이즈 모델을로드 할 때
class Size extends MY_Model {
public function brand(){
return $this->belongsTo('Brand');
}
}
"클래스의 크기를 찾을 수 없습니다"
어떤 아이디어?
자동로드 또는 코드 내의 어느 곳에서나 클래스를로드합니까? –