Skip to content

Commit 225d44f

Browse files
committed
clarify what the breaking change looks like
1 parent f526099 commit 225d44f

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

content/collections/pages/5-to-6.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,29 @@ The `urlencode` and `rawurlencode` modifiers now encode forward slashes (`/`). I
597597

598598
The `logged_in` variable now uses the authentication guard configured in Statamic's `users` config file, rather than the default Laravel guard.
599599

600+
```php
601+
// config/auth.php [tl! **]
602+
return [
603+
'defaults' => [ // [tl! **]
604+
// v5 used this 👇 [tl! -- **]
605+
'guard' => env('AUTH_GUARD', 'web'), // [tl! **]
606+
'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
607+
],
608+
]
609+
610+
// config/statamic/users.php [tl! **]
611+
return [
612+
'guards' => [ // [tl! **]
613+
'cp' => 'web',
614+
// v6 uses this 👇 [tl! ++ **]
615+
'web' => 'web', // [tl! **]
616+
],
617+
];
618+
```
619+
620+
In the majority of cases, this results in the exact same behavior.
621+
622+
600623
### Full-measure Static caching
601624
**Affects apps that use full-measure static caching and customize the JS behavior**
602625

0 commit comments

Comments
 (0)