Install BelongsToThrough via Composer
mainInstall the package using Composer. For standard environments, use the first command. If you are using PowerShell on Windows (e.g., within VS Code), use the second command to avoid issues with character escaping.
composer require staudenmeir/belongs-to-through:"^2.5"
# For PowerShell on Windows:
composer require staudenmeir/belongs-to-through:"^^^^2.5"