Skip to content

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

Open
riasvdv wants to merge 8 commits into
6.xfrom
feature/remove-custom-guard
Open

[6.x] Remove custom craft authentication guard, provider and broker#19104
riasvdv wants to merge 8 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.

@riasvdv riasvdv requested a review from brandonkelly June 17, 2026 05:27
@riasvdv riasvdv marked this pull request as ready for review June 17, 2026 05:27
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