LMongo\Eloquent\Model::getForeignKey PHP Méthode

getForeignKey() public méthode

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