Select Git revision
phpunit.xml
-
Sofiane Lasri authored
- 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`.
Sofiane Lasri authored- 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`.