79312373

Date: 2024-12-27 17:00:00
Score: 2
Natty:
Report link

Version 11.22 supports now inverse.

https://github.com/laravel/framework/pull/51582

class Thread extends Model
{
    public function posts()
    {
        return $this->hasMany(Post::class)->inverse('thread');
    }
}
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mrFlyer