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

Sanctum configuration value missing #492

Closed
wants to merge 1 commit into from

Conversation

ninjaparade
Copy link

Issue

in the SanctumServiceProvider, the route prefix for sanctum is used from the config value ('sanctum.prefix') but that value is not actually in the config file.

Solution

Users are unable to find the value in the config, although adding it is simple, it would make sense to provide all configuration values with their defaults in the published config file for ease of use and better DX.

this PR adds that value so customization can be done with less confusion.

https://github.com/laravel/sanctum/blob/02ceac431eb99e7cf1d863e3fc4d3e72750cc720/src/SanctumServiceProvider.php#L86C43-L86C57

TODO

  • Add proper cascading comment block in config.

in the `SanctumServiceProvider`, the route prefix for sanctum is used from the config value `('sanctum.prefix')` but that value is not actually in the config file.

this PR adds that value so customization can be done with less confusion.

https://github.com/laravel/sanctum/blob/02ceac431eb99e7cf1d863e3fc4d3e72750cc720/src/SanctumServiceProvider.php#L86C43-L86C57

### TODO
- [ ] Add proper cascading comment block in config.
@taylorotwell
Copy link
Member

I personally don't really think this should be changed, so I didn't expose it in the configuration file.

@ninjaparade ninjaparade deleted the patch-1 branch January 9, 2024 21:42
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.

None yet

2 participants