Updated ProductPolicy and RecipePolicy to accept ProductDto in addition to Product. This change enhances the flexibility of the policies by allowing DTOs to be used for authorization checks.
refactor(provider): simplify service provider bindings
Refactored AppServiceProvider to simplify the binding of ProductDirectory and RecipeDirectory. Removed unnecessary dependencies and improved clarity.
feat(route): update route bindings for front-end
Changed route bindings for products and recipes to use frontProduct and frontRecipe. This improves clarity and consistency in route handling.
fix(breadcrumbs): update breadcrumb checks for DTOs
Updated breadcrumb generation to check for ProductDto and RecipeDto instead of their model counterparts. This ensures breadcrumbs function correctly with the new DTO structure.
refactor(types): remove FilePath type and update schemas
Removed the FilePath type definition and updated related schemas to use string directly. This simplifies type handling for file paths.
style(entities): standardize naming conventions
Updated naming conventions in Product and Recipe entities to use snake_case for consistency across the codebase.
feat(frontend): update product and recipe pages for new DTO structure
Modified front-end components to accommodate changes in the product and recipe data structures, ensuring compatibility with the new DTOs.
- Added actions for creating, updating, deleting, force deleting, and restoring recipes.
- Introduced input classes for each action to handle data validation and transfer.
- Implemented DTOs for recipes to facilitate data transfer between layers.
- Updated RecipeController to utilize new actions and input classes.
- Enhanced recipe model to manage picture URLs and storage.
- Updated frontend components to handle new data structures and display images correctly.
Updated the UpdateProductRequest and UpdateRecipeRequest to use built-in validation rules for file uploads, removing custom validation methods for pictures and PDFs. This change streamlines the validation process and improves code readability.
refactor(helper): remove unused FileStorageHelper
Deleted the FileStorageHelper class as it was no longer needed, simplifying the codebase.
refactor(toolbox): clean up ToolboxHelper methods
Removed unused methods and simplified existing ones in ToolboxHelper to enhance maintainability.
feat(models): add translation search method to Product and Recipe
Added a new method `whereTranslationLike` to both Product and Recipe models to facilitate searching translations.
chore(config): add storage service prefix configuration
Introduced a new configuration option for storage service prefix to allow customization of media paths.
fix(validation): add file existence validation message
Added a French translation for the file existence validation message to improve user feedback.
feat(routes): add media route for file access
Implemented a new route for accessing media files through a MediaController, enhancing file management capabilities.