21 Commits

Author SHA1 Message Date
Rico van Zelst dd79ffcf98 perf: optimize database queries and caching 2026-01-01 00:41:38 +01:00
Rico van Zelst a0b37a4ab4 🧹 Duster 2024-06-18 12:55:10 +02:00
Rico van Zelst 6d2731f1d3 feat: Add functionality to retrieve champion images from the database
- Added a new function `getChampionImage` to fetch champion images based on ID and type.
- Created a new model `ChampionImage` to store champion image details in the database.
- Implemented seeding of champion images using `ChampionImageSeeder`.
- Updated usage of champion images in existing methods.
2024-05-02 00:50:51 +02:00
StyleCI Bot 672088b696 Apply fixes from StyleCI 2024-04-30 23:18:02 +00:00
Rico van Zelst c69a5472aa refactor: Update image URL generation logic
- Refactored the logic for generating image URLs for champions and champion skins to improve readability and maintainability.
2024-05-01 01:12:31 +02:00
StyleCI Bot 401fa11cb1 Apply fixes from StyleCI 2024-04-15 03:17:22 +00:00
Rico van Zelst 29e102e8bb feat(champion-skin): Improve skin image URL handling
- Refactored the `getSkinImageAttribute` method in ChampionSkin model to accept a boolean parameter for uncentered images.
- Updated references to `getSkinImageAttribute` in ChampionSkinController and blade files to include the new parameter for uncentered images.
2024-04-14 14:29:30 +02:00
StyleCI Bot 8fa00e2ef6 Apply fixes from StyleCI 2024-03-18 17:48:57 +00:00
Shift 1038874e0f Convert $casts property to method 2024-03-18 16:13:34 +00:00
Rico van Zelst 88a7ba0b3b fix: optimize home images 2023-11-09 12:42:03 +01:00
Rico van Zelst 2b8e6d9327 feat: skin list 2023-11-09 12:20:46 +01:00
Rico van Zelst c7eae5d41a fix: skin duplicate bug 2023-11-08 18:47:26 +01:00
Rico van Zelst 68231197d0 fix: skin foreign key 2023-11-08 15:01:20 +01:00
Rico 4e05fcee91 Apply fixes from StyleCI 2023-11-06 20:47:58 +00:00
Rico van Zelst 3d6c00dd0d feat: upcoming skins & feat: return types 2023-11-06 20:56:21 +01:00
Rico van Zelst 91ec747c2c style: make per the coding style in pint 2023-11-02 13:05:53 +01:00
Rico van Zelst 9ced9a83f3 style: laravel pint lint 2023-11-01 14:09:25 +01:00
Rico van Zelst 69c072a003 feat: make models sluggable 2023-11-01 14:08:20 +01:00
Rico van Zelst 021eae9bf4 🌈 Skin Chromas 2023-10-27 10:20:17 +02:00
Rico van Zelst bb771faf25 🍺 Laravel Pint ran
- Moved the import statement for `Champion` and `ChampionSkin` models in their respective controllers to improve code organization.
- Refactored image attribute methods in the `Champion` model to use string interpolation for better readability.
- Refactored image attribute methods in the `ChampionSkin` model to use string interpolation for better readability.

This commit improves code organization and readability by refactoring import statements and using string interpolation for image attribute methods.
2023-10-27 01:23:39 +02:00
Rico van Zelst 1414391197 🎨 Champion + Skin databases 2023-10-26 20:46:09 +02:00