Commit Graph

21 Commits (7fa0615448feabaee8d8e3949d50ee6319010643)

Author SHA1 Message Date
Your Name 570a30d037 refactor: replace $fillable with $guarded = [] across all models
Aligns all models with the project convention (see .ai/rules/models.md).
Model::shouldBeStrict() in non-production will catch any issues early.
4 weeks ago
Your Name f2159197e8 fix: add return type declarations to Eloquent relation methods
Larastan 3.x requires explicit return types on relation methods to
verify relation existence when using with(), has(), etc. This adds
the appropriate return type declarations to all relation methods
flagged by the larastan.relationExistence rule.

Models fixed:
- Profile (avatar, statuses)
- User (profile)
- Status (profile, media, hashtags)
- DirectMessage (status, author, recipient)
- Report (reporter, status, reportedUser)
- Like (actor, status)
- Media (status)
- Notification (item)
- HashtagFollow (hashtag)
- OauthClient (user)
- Story (profile)
- StatusHashtag (status, hashtag, profile, media)
- AccountInterstitial (user)
- Hashtag (posts)
- CustomFilter (keywords)
- CustomFilterKeyword (customFilter)
- AdminShadowFilter (profile)
- ImportPost (status)
4 weeks ago
Your Name c807a8524c refactor: replace short facade aliases with fully-qualified imports
Convert all 273 short facade alias imports (e.g. 'use Cache;') to their
fully-qualified class names (e.g. 'use Illuminate\Support\Facades\Cache;')
across 193 files.

This resolves 643 PHPStan 'class.notFound' errors caused by the static
analyzer being unable to resolve global aliases, and aligns with modern
Laravel conventions. It also unblocks removing the aliases array from
config/app.php in a future change.

All 107 tests pass.
4 weeks ago
Your Name 2f06f30508 fix 7 months ago
Your Name 9a22a4dbda more properties 11 months ago
Daniel Supernault fefbbee83f
Update Story model 1 year ago
Daniel Supernault 9eef882adc
Update Story model 1 year ago
Daniel Supernault 588384543b
Update Story model, use immutable datetime 5 years ago
Daniel Supernault e5aea490b1
Refactor snowflake id generation to improve randomness 5 years ago
Daniel Supernault e90637098a
Add Bearcap util 5 years ago
Daniel Supernault e1a3e26644
Update Story model 5 years ago
Daniel Supernault 9f2659da6a
Update Story model 7 years ago
Daniel Supernault de89403c41
Update Story model, hide json attribute by default 7 years ago
Daniel Supernault 034fdb4d42
Update Story model 7 years ago
Daniel Supernault 3f75763d7d
Update Story model, change daily limit to 10 7 years ago
Daniel Supernault 7faa9d8e61
Add S3 + Stories 7 years ago
Daniel Supernault 6a81f161fa
Update Story model 7 years ago
Daniel Supernault 353b8fd856
Update Story Model 8 years ago
Daniel Supernault d7d1303a63
Update Story Model 8 years ago
Daniel Supernault ae78addab4
Update Story Model 8 years ago
Daniel Supernault 7b748ecc8a
Add story models 8 years ago