Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the project, focusing on database configuration, user management, and validation. The most important changes include updates to the environment configuration, the addition of a
UserController
and aUser
model, updates to thecomposer.json
file to include new dependencies, and the creation of a migration file for theusers
table.Environment Configuration:
.env.example
: Updated database configuration to use PostgreSQL instead of MySQL and changed Redis host.User Management:
app/Controller/UserController.php
: Added a new controller to handle user-related operations such as listing, showing, storing, and deleting users.app/Model/User.php
: Added a new model to represent theUser
entity with properties and configurations for the users table.config/routes.php
: Added routes for user-related operations handled byUserController
.Database Migration:
migrations/2024_12_28_145600_create_users_table.php
: Created a migration file to define the schema for theusers
table.Dependencies:
composer.json
: Added new dependencies for database, validation, and UUID generation. [1] [2]Validation and Localization:
config/autoload/exceptions.php
: AddedValidationExceptionHandler
to handle validation exceptions.config/autoload/middlewares.php
: AddedValidationMiddleware
to handle request validation.config/autoload/translation.php
: Added configuration for translation settings.storage/languages/en/validation.php
: Added validation messages for various rules.