Skip to content

[6.x] Remove custom craft authentication guard, provider and broker#19104

Draft
riasvdv wants to merge 7 commits into
6.xfrom
feature/remove-custom-guard
Draft

[6.x] Remove custom craft authentication guard, provider and broker#19104
riasvdv wants to merge 7 commits into
6.xfrom
feature/remove-custom-guard

Conversation

@riasvdv

@riasvdv riasvdv commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Description

Now that we use and expect an eloquent model for authentication, we don't really need to provide our own guard, user provider and password broker.

Additionally this changes over usage from Auth::craftUser() to a currentUser() helper method. Relying on a macro on a specific guard class (SessionGuard) is brittle as for example Sanctum and Passport provide their own guard implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant