14 Commits

Author SHA1 Message Date
Roardom
702ac45cb6 fix: normalize request claims
Errors happen when requests have the claimed flag but don't actually have a claim record (or vice-versa).
2025-06-20 03:08:01 +00:00
Jay Sizzla
29c144a931 Use shouldSend for NewRequestUnclaim notifications 2025-02-27 13:09:23 +00:00
Jay Sizzla
a3524f9092 Use shouldSend for NewRequestClaim notifications 2025-02-27 13:08:43 +00:00
Roardom
868ad35aa4 refactor: swap magic RedirectResponse withX('Y') to with('X', 'Y')
Allows ctrl+clicking to access the underlying function unlike the previous magic implementation. Probably also negligibly faster.

Swapped all instances of `>withSuccess(` -> `>with('success', `, `>withWarning(` -> `>with('warning', `, and `>withInfo(` -> `>with('info', ` with ide's find and replace.
2025-01-21 16:05:11 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
c7408be672 update: pass types directly into some notifications
Only the request notifications for now, but they should all get done with time.
2024-03-01 17:58:24 +00:00
Roardom
a8aa1000ea update: swap username for user_id as request_claims foreign key 2023-08-06 06:20:29 +00:00
Roardom
70e3505886 update: cruddy requests
Separate requests into cruddy routes. Use route model binding. Allow forfeit of award if request approval is revoked. Use form requests.
2023-07-07 03:18:13 +00:00
Roardom
9d4789ba91 refactor: require whitespace before statements 2023-07-07 00:27:13 +00:00
HDVinnie
5232781f03 Merge pull request #2840 from Roardom/code-cleanup-3
(Refactor) Code Cleanup
2023-06-19 20:14:57 -04:00
Roardom
177c59d88d refactor: swap firstOrFail() for sole() to enforce a single result 2023-06-19 23:18:40 +00:00
HDVinnie
87aa262f13 PHP Style Change (Laravel Pint CI) 2023-06-19 14:26:46 +00:00
HDVinnie
48b2eff76f remove: empty class methods 2023-06-19 10:25:47 -04:00
Roardom
4c93353f03 update: cruddy request controller 2023-04-21 21:49:35 +00:00