Skip to content

Commit d3e3271

Browse files
authored
Update using-an-independent-authentication-guard.md (#1844)
1 parent 1a944e6 commit d3e3271

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

content/collections/tips/using-an-independent-authentication-guard.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@ While you're in the `config/auth.php` file, ensure you have separate brokers for
7272
],
7373
```
7474

75-
Next, in Statamic's `users.php` configuration file, you'll want to configure which user guard should be used on the frontend and which should be used for the Control Panel:
75+
Next, in Statamic's `users.php` configuration file, you'll want to change the `repository` from `eloquent` to `file` and configure which user guard should be used on the frontend and which should be used for the Control Panel:
7676

7777
In the example below, we're using the `statamic` driver for Control Panel users and the `web` driver for frontend users.
7878

7979
```php
8080
// config/statamic/users.php
81+
'repository' => 'file',
8182

8283
'guards' => [
8384
'cp' => 'statamic',

0 commit comments

Comments
 (0)