|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Post query() * @method static \Illuminate\Database\Eloquent\Builder|Post whereBody($value) * @method static \Illuminate\Database\Eloquent\Builder|Post whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Post whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Post whereThreadId($value) * @method static \Illuminate\Database\Eloquent\Builder|Post whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Post whereUserId($value) * @mixin \Eloquent */ class Post extends Model { protected $fillable = [ 'thread_id', 'user_id', 'body', ]; public function thread(): BelongsTo { return $this->belongsTo(Thread::class); } public function user(): BelongsTo { return $this->belongsTo(User::class); } }