Commit Graph

14 Commits

Author SHA1 Message Date
HDVinnie
3f03214e39 PHP Style Change (Laravel Pint CI) 2023-11-07 23:54:38 +00:00
Roardom
d0272652dd fix: invite relations in route model binding 2023-07-19 08:25:28 +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
Roardom
219b2a5ed6 fix: send invite validation 2023-07-14 08:01:36 +00:00
Roardom
140311100f refactor: user invites
Use route model binding. Use mass assignment.
2023-07-07 00:28:47 +00:00
Roardom
d2e36c368e refactor: reduce temporary variables passed to views 2023-06-19 23:25:40 +00:00
Roardom
177c59d88d refactor: swap firstOrFail() for sole() to enforce a single result 2023-06-19 23:18:40 +00:00
Roardom
b6bb83e68e add: invite retraction 2023-06-13 09:37:26 +00:00
HDVinnie
cca60021cd fix: expired invites 2023-06-02 22:56:14 -04:00
HDVinnie
f4ebee885c update: lint 2023-02-03 22:23:00 -05:00
HDVinnie
3650900c97 update: lint
- not_operator_with_space to false
2023-02-03 16:01:29 -05:00
HDVinnie
472c820f99 update: UNIT3D linting
- github action updated with new ruleset in pint.json
- codebase linted with new ruleset
- contributors can now run `./vendor/bin/pint`
- action workflow will auto correct any lint issues upon commit/opened pull request
2023-02-02 08:02:34 -05:00
Roardom
7cb2c04be6 refactor: user views 2022-12-24 19:26:46 -06:00
Roardom
d1173f4c90 refactor: user controllers 2022-12-24 19:26:46 -06:00