Skip to content

Ldap config settings from DB #630

Closed Answered by stevebauman
orebarranco asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @orebarranco,

Registering the Connection as a singleton in Laravel won't hook into LdapRecord as you're expecting here. You will need to register this connection outside of the singleton closure and directly into the LdapRecord\Container as shown in the documentation:

https://ldaprecord.com/docs/core/v3/quickstart

Looking at how LdapRecord-Laravel itself registers configured connections will help you here:

$this->registerLdapConnections();

/**
* Register the application's LDAP connections.
*/
protected f…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@orebarranco
Comment options

Answer selected by orebarranco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants