Commit Graph

8 Commits (570a30d037a74346ec672e2b0bcf07de5dac58fa)

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
Daniel Supernault 374344754e
Lint 9 months ago
Daniel Supernault 5340649d04
Update AppRegisterController 2 years ago
Daniel Supernault ed35214161
Update HashtagFollow model, add MAX_LIMIT of 250 tags per account 3 years ago
Daniel Supernault 9805cd841f
Update HashtagFollow model, add hashtag relation 7 years ago
Daniel Supernault 3b457c7afe
Update HashtagFollow model 7 years ago
Daniel Supernault d07c3deb86
Add HashtagFollow model, migration and controller 7 years ago