belongsTo(self::class, 'not_null_column_with_foreign_key_constraint'); } public function notNullColumnWithNoForeignKeyConstraint(): BelongsTo { return $this->belongsTo(self::class, 'not_null_column_with_no_foreign_key_constraint'); } public function nullableColumnWithForeignKeyConstraint(): BelongsTo { return $this->belongsTo(self::class, 'nullable_column_with_foreign_key_constraint'); } public function nullableColumnWithNoForeignKeyConstraint(): BelongsTo { return $this->belongsTo(self::class, 'nullable_column_with_no_foreign_key_constraint'); } }