Feature Request: Add --clean Option to php artisan install:api for Minimalist Installation in Laravel 11 #50928
Unanswered
caioSalchesttes
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am reaching out to propose the addition of a new option to the php artisan install:api command, specifically a --clean flag. This would allow developers to set up a Laravel 11 API-focused project without including additional packages by default, such as Laravel Sanctum.
The rationale behind this suggestion is twofold:
Flexibility for Future Authentication: Many projects may prefer alternative authentication solutions, such as JWT (JSON Web Tokens), which do not require Sanctum. Having the ability to start a project with a "clean" setup would offer greater flexibility and choice in terms of authentication implementation.
Expanded Support in Laravel: While Laravel provides robust support for various out-of-the-box functionalities, including authentication via Sanctum, there appears to be an opportunity to broaden its support and flexibility for developers opting to use different forms of authentication, particularly those suited for stateless APIs.
Implementing a --clean flag in the php artisan install:api command would provide developers with the freedom to begin their projects on a more neutral basis, without the need to manually remove unwanted packages and configurations, streamlining the development process and allowing for more direct customization according to specific project needs.
Furthermore, we believe this change could encourage a broader discussion and collaboration around best practices for authentication and security within the Laravel community, especially as new technologies and methodologies emerge.
Thank you for considering this suggestion. I am open to discussions on how we can work together to make Laravel even more accommodating for developers working with different authentication solutions for APIs.
Beta Was this translation helpful? Give feedback.
All reactions