41 Commits

Author SHA1 Message Date
Roardom 8b27413fe8 refactor: make laravel eloquent models final
We never plan to extend a model, and value composition over inheritance. We need to add the AllowDynamicProperties warning to prevent PHPStan errors that arise with pivot relations (https://www.github.com/larastan/larastan/issues/2256).
2025-10-29 10:19:39 +00:00
Roardom 3988eaaf70 update: model phpdocs
- `use` the relation types
- Use sentence case
- Write better summaries similar to laravel's documentation (don't just repeat the type and the model)
2025-09-20 01:35:37 +00:00
HDVinnie 7fcd4d0133 add: history soft deletes 2025-01-14 12:53:13 -05:00
Roardom 5a9ae37921 update: use system user id constant in more places 2024-08-26 09:28:44 +00:00
Roardom 872d28d9c0 fix: larastan relations 2024-08-09 07:33:56 +00:00
Roardom e9fe52ac6d update: use composite primary key for history 2024-07-23 06:24:57 +00:00
HDVinnie 8ad0097fc9 fix: HasFactory types 2024-07-18 23:42:13 -04:00
Roardom 14cb175a4e update: save prewarned timestamp
Allows users to more easily see when they were prewarned in case they no longer have their notification.

It was decided to discard previous prewarn values and have the system prewarn users again if applicable.

It was decided that keeping the history of prewarn values wasn't valuable for this migration.
2024-06-23 23:52:22 +00:00
HDVinnie c4cd52e23b fix: multiple bugs
- adds laravel 11 casts support to phpstan https://github.com/larastan/larastan/blob/2.x/UPGRADE.md#upgrading-to-296-from-295
- fixes multiple bugs found by phpstan
- removes dead code in torrent filter trait
- ignores three new files in phpstan.neon temp until debugged for timeouts
2024-06-19 13:43:59 -04:00
Roardom b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
HDVinnie 51fa8ec46b update: laravel
- Laravel 11 introduces a new default application structure with fewer default files. Namely, new Laravel applications contain fewer service providers, middleware, and configuration files.

However, it is not recommend that Laravel 10 applications upgrading to Laravel 11 attempt to migrate their application structure, as Laravel 11 has been carefully tuned to also support the Laravel 10 application structure.
2024-04-23 16:06:37 -04:00
HDVinnie 8a03bec818 add: model docblocks
- this resolves some larastan property issues but in return has revealed quite a few issues with our castings and such. baseline has been regenerated so we can work through them. The properties in docblocks are in order and match everything in DB schema wise.
2024-02-07 16:39:43 -05:00
Roardom f2066f4441 fix: add type hints to models 2023-08-26 07:43:07 +00:00
Roardom 8127734979 fix: various larastan command issues 2023-08-25 07:58:38 +00:00
Roardom 450a475593 fix: casts type 2023-08-06 02:21:15 +00:00
Roardom f8ac185deb fix: guarded type 2023-08-06 02:19:54 +00:00
Roardom e1505c86ad fix: redis history batching
We need to make sure default values are provided instead of null.
2023-07-19 06:00:59 +00:00
Roardom 6ea7d8af69 add: redis history batching 2023-07-18 09:46:37 +00:00
Roardom 9e606315ec update: history table 2022-12-23 00:43:44 -06:00
HDVinnie 2ca429c4ce Revert "PSR12 Linting"
This reverts commit 7e65e1d589.
2022-09-11 19:51:58 -04:00
HDVinnie 7e65e1d589 PSR12 Linting 2022-09-11 23:50:41 +00:00
HDVinnie 56ed0a93d0 update: history model 2022-02-17 00:56:41 -05:00
HDVinnie 1fc7c75eaa update: dependencies 2022-02-08 23:34:35 -05:00
Shift bcb55abc2e Convert deprecated $dates property to $casts 2022-01-19 19:51:31 +00:00
HDVinnie ebb5b72c2b fix: model type hints 2022-01-08 16:26:53 -05:00
HDVinnie 97394c062f chore: adopt type hints 2022-01-07 23:35:33 -05:00
Laravel Shift fac1da0b42 Shift cleanup 2020-09-08 22:25:06 +00:00
Laravel Shift add31768f5 Shift to class based factories 2020-09-08 22:24:30 +00:00
HDVinnie 01093d711c Apply fixes from StyleCI
[ci skip] [skip ci]
2020-07-28 16:54:24 +00:00
HDVinnie 41b617bb2e update: laravel 7 support 2020-07-19 17:33:50 -04:00
HDVinnie 780e0c1f0e chore: update license block 2020-02-12 15:05:34 -05:00
HDVinnie 9a893662de Apply fixes from StyleCI
[ci skip] [skip ci]
2020-01-08 16:28:32 +00:00
HDVinnie ef0b9e0203 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-11-13 14:36:38 +00:00
HDVinnie 2a0affa30d (Update) Model PHPDocs 🚀 2019-11-11 20:52:59 -05:00
HDVinnie e058e85c84 (Update) Audits 🚀 2019-11-11 16:41:49 -05:00
HDVinnie e0379e5b95 (Add) Audit System 🆕
- filtering to follow
2019-11-06 06:42:17 -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
Max Kovalenko f42264247f StyleCI fix 2019-05-22 10:24:30 +03:00
Max Kovalenko 1a87a96e55 generated model phpdocs 2019-05-22 09:41:19 +03:00
Laravel Shift 46ddd8be75 Namespace models under App\Models 2019-02-22 03:22:57 +00:00