You're browsing documentation for an old version.

View Current

Authentication Setup

Once you have configured a new authentication provider, you will have to set up your authentication guard to use this new provider as the default.

For this example, we will change our default web guard to use our new ldap provider:

// config/auth.php

'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'ldap', // Changed from 'users'
    ],

    // ...
],

Authentication Scaffolding

LdapRecord-Laravel supports both Laravel Jetstream and Laravel UI out-of-the-box. Select whichever authentication scaffolding you feel suits your application best.

Generated on November 8, 2024
Edit on GitHub