Skip to content

Using Directory Emulator in development environment #586

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

You must be logged in to vote

Hi @acharseth,

I know your pain! I think you should be able to do this with the Directory Emulator, but there's a bit of setup work involved.

I just did this myself and it works -- I'll do my best to help walk you through it.

To start, create a ldap_test_database.sqlite database file inside of your applications database/ directory:

The below command will only work for macOS. You will have to create the file manually on Windows.

touch database/ldap_test_database.sqlite

Then, inside of your AppServiceProvider::boot() (like you mentioned), setup the directory emulator:

// app/Providers/AppServiceProvider

public function boot()
{
    DirectoryEmulator::setup(config: [
        'database' =>…

Replies: 1 comment 16 replies

Comment options

You must be logged in to vote
16 replies
@stevebauman
Comment options

@acharseth
Comment options

@stevebauman
Comment options

@acharseth
Comment options

@stevebauman
Comment options

Answer selected by acharseth
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