'integer', 'user_id' => 'integer', 'blocked_by' => 'integer', ]; /** * Get the user whose profile has been blocked. */ public function user() { return $this->belongsTo(User::class, 'user_id'); } /** * Get the user that blocked the profile. */ public function blockedBy() { return $this->belongsTo(User::class, 'blocked_by'); } }