Commit Graph

5 Commits

Author SHA1 Message Date
Roardom
61c0c29e9f refactor: use php 8.4 property hooks for livewire computed properties
Less magic, and works well. Saw this trick in the Laracon US 2025 Livewire presentation.
2025-08-16 10:48:12 +00:00
Roardom
b2e29cfcf0 fix: migrate boolean columns to tinyint(1)
These columns were previously tiny ints without the (1) display width or regular ints, or smallints. They should all be tinyint(1).
2025-02-19 06:25:21 +00:00
Roardom
5e8f54fa4c refactor: don't use unnecessary orderByRaw
Null values are always ordered last anyways. Additionally, count(*) returns 0, not null. Also fixes issue on mariadb with value being a reserved keyword.
2025-02-11 06:24:21 +00:00
Roardom
a0299daa16 refactor: use eloquent relations directly 2024-08-18 03:26:41 +00:00
Roardom
80b9aa32bf add: livewire top users
More cleanly modularized using livewire computed attributes. Abuses the fact that only one of the tabs is selected and most users won't access the other tabs. This significantly reduces the time spent loading the home page when the cache is cleared.
2024-06-01 15:47:26 +00:00