LMongo\Eloquent\Model::getForeignKey PHP 메소드

getForeignKey() 공개 메소드

Get the default foreign key name for the model.
public getForeignKey ( ) : string
리턴 string
    public function getForeignKey()
    {
        return snake_case(class_basename($this)) . '_id';
    }
Model