Commit Graph

19 Commits

Author SHA1 Message Date
Rico van Zelst
998f386f20 fix: Handle exceptions in image processing functions
- Catch exceptions when reading image content to prevent errors.
- Adjust image resizing dimensions for better display.
2024-03-28 10:34:16 +01:00
StyleCI Bot
e436ceae38 Apply fixes from StyleCI 2024-03-26 10:27:36 +00:00
Rico van Zelst
39e9acf85b refactor: Remove unused cache for streamers
- Removed the unused caching mechanism for champion streamers to improve code clarity and efficiency.
2024-03-23 03:06:32 +01:00
Rico van Zelst
e6dcfacb31 feat: Add streamers to champion show view
- Added loading of streamers data in the champion show view.
- Updated ChampionController to load streamers for display.
2024-03-23 02:48:08 +01:00
StyleCI Bot
8fa00e2ef6 Apply fixes from StyleCI 2024-03-18 17:48:57 +00:00
Rico
00b096892e Apply fixes from StyleCI 2024-01-15 20:59:11 +00:00
Rico van Zelst
5c6f13a072 feat(cache): update cache expiration times
- Update the cache expiration time for 'championsListAllCache' and 'championsRolesCache' to 8 hours.
- Update the cache expiration time for 'championShowCache{slug}' to 3 days.
- Update the cache expiration time for 'championSplashColorCache{slug}' to 6 months.
- Update the cache expiration time for 'championSkinShowCache{slug}' to 48 hours.
- Update the cache expiration time for 'championSkinSplashColorCache{slug}' to 120 hours.
2024-01-14 00:13:37 +01:00
Rico
b2dedb56c9 Apply fixes from StyleCI 2024-01-05 23:14:56 +00:00
Rico van Zelst
85e3c4ff2e feat(controllers): optimize caching and view data passing
- Refactored the ChampionController, ChampionSkinController, HomeController, SaleController, SummonerEmoteController, and SummonerIconController to use arrow functions for cache callbacks.
- Updated the view data passing in the ChampionController, ChampionSkinController, HomeController, PostsController, SaleController, SummonerEmoteController, and SummonerIconController to use associative arrays instead of compact().
- Removed unused imports from web.php.
2024-01-06 00:15:19 +01:00
Rico
d07bda0fa3 Apply fixes from StyleCI 2023-11-26 16:39:54 +00:00
Rico van Zelst
f79395cfae cache time 2023-11-26 16:20:06 +01:00
Rico van Zelst
00018878e0 feat: position filter 2023-11-08 21:40:51 +01:00
Rico van Zelst
149174ebc3 feat: champ information, style improvement 2023-11-08 14:12:51 +01:00
Rico van Zelst
38247c71d9 feat: champ info start 2023-11-08 10:39:52 +01:00
Rico van Zelst
d17d19bac6 fix: query optimization
 166 Queries -> 2 Queries (cached)
2023-11-07 22:04:00 +01:00
Rico van Zelst
b5342fcc9d style: remove unused code 2023-11-07 19:15:09 +01:00
Rico van Zelst
4445bc1478 feat: champion list 2023-11-07 17:28:37 +01: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