Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for using a custom user model #44

Merged
merged 2 commits into from
Dec 24, 2024

Conversation

negoziator
Copy link
Contributor

@negoziator negoziator commented Dec 16, 2024

This PR makes it possible to dynamically use a custom model to login without using the guard

Usage:

<x-login-link user-model="App\\Models\\Customer" email="customer@spatie.be" label="Login as Customer"/>

@freekmurze
Copy link
Member

There are conflicts. Could you rebase with the current main branch? Thanks!

@negoziator
Copy link
Contributor Author

@freekmurze Fixed 😄

@freekmurze freekmurze merged commit fd71230 into spatie:main Dec 24, 2024
4 checks passed
@freekmurze
Copy link
Member

Very nice, thanks!

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.

2 participants