9 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
Roardom
047f10be36 add: bbcode and linkify blade directives
Also add escaping content inside joypixels blade directive where necessary.
2025-02-01 16:15:34 +00:00
Roardom
ad716d7cc3 update: remove XSS cleaner and remove XSS vulnerabilities
We've been mostly relying on the 3rd party xss cleaner to make sure user submitted content is clean. This PR fixes up any leftover holes in the bbcode parser that allow xss vulnerabilities, and as a result, the 3rd party library isn't needed anymore. It cleans responsibly by first, running `htmlspecialchars()` over the content, followed by sanitizing the untrusted urls and whitelisting their protocol.
2025-01-20 02:52:42 +00:00
Roardom
872d28d9c0 fix: larastan relations 2024-08-09 07:33:56 +00:00
HDVinnie
ebef69d541 add: #3660
- closes #3660
2024-07-22 00:35:18 -04:00
HDVinnie
8ad0097fc9 fix: HasFactory types 2024-07-18 23:42:13 -04:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
HDVinnie
25eab6891e add: #3639
- closes #3639
2024-03-20 09:03:28 -04:00