LMongo\Eloquent\Model::getForeignKey PHP Method

getForeignKey() public method

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