*/ protected $fillable = [ 'customer_id', 'blocked_id', ]; // * RELATIONSHIPS /** * Get the associated customer who has blocked another one. */ public function customer(): BelongsTo { return $this->belongsTo(Customer::class); } /** * Obtain the associated client that has been blocked by another one. */ public function blocked(): BelongsTo { return $this->belongsTo(Customer::class, 'blocked_id'); } }