Skip to content

Conversation

@titusfrezer
Copy link

Added instructions for integrating Laravel Sanctum's API token authentication with Tenancy for Laravel in Laravel 12, including middleware configuration.

Added instructions for integrating Laravel Sanctum's API token authentication with Tenancy for Laravel in Laravel 12, including middleware configuration.
@stancl
Copy link
Owner

stancl commented Oct 20, 2025

Hi, thanks for the PR.

I am not sure why this would be necessary though considering middleware priority is already configured in TenancyServiceProvider.

@titusfrezer
Copy link
Author

I see, what I faced was I just created a custom middleware which wraps the InitializeTenancyBySubDomain; so I got null when accessing $request->user(); so don't you think it is worth it mentioning the priority of the middleware in the TenancyServiceProvider.

Thank you for the clarification.

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