Skip to content
Snippets Groups Projects
Commit d77d6ad7 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

feat: add category localization support and CRUD operations

- Updated the database configuration to use in-memory SQLite for testing.
- Renamed `nameTranslation` to `nameTranslationKey` in `Category` model and updated the relation to `TranslationKey`.
- Added `CategoryController` methods: `store`, `edit`, and `update` for category management with localization support.
- Removed `CategoryRequest.php` and created `CategoryTest.php` for testing new features.
- Modified `edit.blade.php` to dynamically set titles and pre-fill form data for category editing.
- Updated `phpunit.xml` to use SQLite connection.
- Added relation `translations` and method `getTranslation` in `TranslationKey` model for fetching translations.
- New routes added for category creation, editing, and updating in `web.php`.
parent 866ce397
No related branches found
No related tags found
1 merge request!2feat(admin): ajouter gestion des catégories dans l'interface admin
Pipeline #595 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment