'integer', 'thumbs_up' => 'boolean', ]; } public function rateable(): MorphTo { return $this->morphTo(); } public function user(): BelongsTo { return $this->belongsTo(User::class); } }