20 Commits

Author SHA1 Message Date
Roardom
72a1e1a885 refactor: rename warnings/bans/notes <-> user/staff relations
These relations are older than the laravel convention for using camel case. Clean up their names to match modern styling and make them easier to read.
2025-11-08 10:23:22 +00:00
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
8122c6a5bc fix: phpstan pagination generics 2025-03-02 09:14:09 +00:00
HDVinnie
4e63959793 update: warning search 2024-09-15 19:19:40 -04:00
Roardom
bd9f820153 fix: phpstan livewire pagination types 2024-07-09 12:24:34 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
HDVinnie
71c5a3ebcb patch: livewire url attributes 2024-03-06 02:02:05 -05:00
HDVinnie
2fa847f6a8 remove: dead code 2024-03-04 16:21:58 -05:00
HDVinnie
bde593e48b update: livewire 2024-03-03 22:41:29 -05:00
Roardom
b274347313 refactor: use whereRelation when possible
All changes were tested for performance regressions. None of the included changes were affected. However, the code that uses `whereIn('category_id', Category::select('id')->where('movie_meta', '=', 1)` saw a ~10% performance loss so should not be changed.
2024-03-03 15:56:02 +00:00
Roardom
fe31076104 Reapply "Merge pull request #3380 from Roardom/livewire-types"
This reverts commit b4a9dfea8b.
2024-01-24 08:03:05 +00:00
HDVinnie
b4a9dfea8b Revert "Merge pull request #3380 from Roardom/livewire-types"
This reverts commit a4e1a1bc62, reversing
changes made to 10982c68bd.
2024-01-14 16:18:08 -05:00
Roardom
69cd4aa982 update: livewire sortBy to trait and add parameter type 2024-01-14 11:35:55 +00:00
Roardom
7037200377 fix: Livewire queryString type hint 2024-01-14 11:35:55 +00:00
Roardom
b6a3917575 fix: add type hints to Livewire computed properties 2024-01-14 11:35:55 +00:00
HDVinnie
3f03214e39 PHP Style Change (Laravel Pint CI) 2023-11-07 23:54:38 +00:00
Roardom
b6b4313bdc update: various database performance improvements
Use eager loading where necessary and add a few indexes. The existing index on private_messages for sender_id and read was probably a typo and intended for receiver_id. The first 3 tables indexes are added to are used for queries ran on every page load: namely the new pm, new notification and warnings indicator in the navbar. Additionally, another index on genre_movie proved useful for finding all the genres when given a movie id. Perhaps, another index for finding all movies within a genre would be good as well, but will leave that for a future optimization if deemed necessary.
2023-07-17 00:21:08 +00:00
HDVinnie
2a3ee4a045 remove: dead livewire component function 2023-06-19 10:07:56 -04:00
HDVinnie
85bc17e76a PHP Style Change (Laravel Pint CI) 2023-05-29 02:21:06 +00:00
HDVinnie
98e8f91cd9 add: warning searching 2023-05-28 22:20:06 -04:00