Roardom
0492a9d704
fix: provide banned rss feed when user banned
...
We can't log them out (which the code would do instead) because rss doesn't have cookies. Provides a similar solution as what's done with the api.
2025-07-23 01:08:52 +00:00
Roardom
48adfce1af
fix: group cache
...
Laravel returns numeric strings when an int is saved to cache, which breaks a lot of the logic here. Fixed by removing cache everywhere except rss and middleware, and in those two spots, caching the whole group and not just the id of the group.
2025-07-19 11:59:00 +00:00
Roardom
9bdbe9764c
refactor: cached select group id by slug queries
...
Uses a better key. Doesn't use the cache when it's not needed.
2025-07-14 18:15:29 +00:00
Roardom
b86475a732
add: strict types to all files
2024-05-23 13:58:29 +00:00
HDVinnie
f4ebee885c
update: lint
2023-02-03 22:23:00 -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
HDVinnie
4e5af0cb20
update: banned middleware
2022-08-24 20:24:02 -04:00
HDVinnie
02eea1206c
fix : #2152
...
- closes #2152
2022-08-24 20:15:30 -04:00
HDVinnie
594b7864d9
refactor: adopt new helpers in laravel 9
2022-03-06 17:20:05 -05:00
HDVinnie
aa15a5a1b5
update: middleware
2022-02-28 05:04:54 -05:00
HDVinnie
98521378d2
chore: phpdoc blocks
2022-01-10 17:46:43 -05:00
HDVinnie
97394c062f
chore: adopt type hints
2022-01-07 23:35:33 -05:00
Apoorv Pal
f994d1fd87
Merge branch 'master' of github.com:apoorvpal01/UNIT3D-Community-Edition
2021-10-21 17:08:20 +05:30
HDVinnie
321847e067
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2021-05-16 02:41:53 +00:00
HDVinnie
3407075214
refactor: better php8 usage
...
- Change simple property init and assign to constructor promotion
- Remove unused variable in catch()
- Change docs types to union types, where possible
2021-05-15 22:41:28 -04:00
HDVinnie
657d093eb0
refactor: banned middleware
2020-12-30 12:23:08 -05:00
HDVinnie
a975116218
refactor: preslash simple functions
...
- Add pre-slash to short named functions to improve performance by almost 30%
- @see https://stackoverflow.com/questions/55419673/php7-adding-a-slash-to-all-standard-php-functions-php-cs-fixer-rule
2020-07-22 15:09:37 -04:00
HDVinnie
4afdfbdade
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-04-19 05:31:13 +00:00
HDVinnie
ea2a12be15
refactor: closure to arrow function
2020-04-14 20:38:48 -04:00
HDVinnie
408bfafc3e
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-03-05 15:47:30 +00:00
HDVinnie
4b9c006a05
chore: phpdoc blocks cleanup
2020-03-05 10:46:14 -05:00
HDVinnie
e47afe4ab4
chore: styleci
2020-02-12 14:51:22 -05:00
HDVinnie
80c842e39c
chore: update license block
...
- make styleci happy
2020-02-12 14:49:18 -05:00
HDVinnie
dbb928f940
chore: update license block
2020-02-12 14:45:59 -05:00
HDVinnie
0bece18c5c
(Update) Group Queries 🚀
...
- add caching to system required groups
2019-11-20 12:11:41 -05:00
HDVinnie
d889971834
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2019-11-05 22:40:30 +00:00
HDVinnie
eed3b51c92
(Update) CRUDDY PT.7 🚀
2019-10-25 17:35:14 -04:00
HDVinnie
426b801eda
(Update) CRUDDY PT.5 🚀
2019-10-23 16:59:03 -04:00
Laravel Shift
4853105815
Shift to consistent, fluent response chains
2019-05-09 00:05:17 +00:00
Laravel Shift
97e88dd68b
Leverage injected request object
...
Laravel automatically injects the current Http [request object][1] to all Controller actions and Middleware. Leveraging this object improves consistency and testability.
[1]: https://laravel.com/docs/5.7/requests#accessing-the-request
2019-05-09 00:05:13 +00:00
HDVinnie
c382aa5236
(Update) Refactor Validation Error/Info/Warning/Success Handeling 🚀
2019-03-25 13:53:41 -04:00
HDVinnie
8bb397c29c
(Update) Standardize Select Queries 🚀
2019-03-13 11:26:20 -04:00
HDVinnie
3c87845e54
(Update) Namespace models under App\Models 🚀
2019-02-22 08:15:41 -05:00
HDVinnie
2f2c52328b
Apply fixes from StyleCI
2018-12-06 22:57:41 +00:00
HDVinnie
00bb324053
Apply fixes from StyleCI
2018-12-06 14:42:13 +00:00
HDVinnie
87563a2473
(Update) Refator Toastr Notifications
2018-11-12 11:14:41 -05:00
HDVinnie
ac5e15b141
(Update) Rework Group Queries
...
- use select and not pluck
2018-10-16 22:18:41 -04:00
HDVinnie
14341a6964
(Update) Optimize Queries
2018-10-16 21:45:15 -04:00
HDVinnie
895bbb66e3
(Update) Optimize Many Queries
...
- reduce load
2018-10-16 21:27:47 -04:00
HDVinnie
dc0dfd176e
(Update) Group Handling
2018-09-17 19:09:12 -04:00
HDVinnie
4efd2d207a
(Update) Refactoring
...
- autoBan
- LoginController
- Middleware
- Routes
2018-02-14 15:11:17 -05:00