Skip to content

Conversation

@spawnia
Copy link

@spawnia spawnia commented Nov 24, 2025

Resolves #85.

This commit adds support for Laravel Nova 5 while maintaining full backward compatibility with Nova 4.

Changes:

  • Update composer.json Nova constraint to ^4.0|^5.0
  • Enhanced LaravelNovaCsvImport::boot() to support both versions:
    • Nova 4: Uses Nova::script() (existing behavior)
    • Nova 5: Adds Nova::mix() with mix-manifest.json
  • Uses method_exists() check for safe version detection

Tested with:

  • Nova 4.35.11: ✓ All checks passed
  • Nova 5.7.6: ✓ All checks passed

🤖 Generated with Claude Code

This commit adds support for Laravel Nova 5 while maintaining full
backward compatibility with Nova 4.

Changes:
- Update composer.json Nova constraint to ^4.0|^5.0
- Enhanced LaravelNovaCsvImport::boot() to support both versions:
  - Nova 4: Uses Nova::script() (existing behavior)
  - Nova 5: Adds Nova::mix() with mix-manifest.json
- Uses method_exists() check for safe version detection

Tested with:
- Nova 4.35.11: ✓ All checks passed
- Nova 5.7.6: ✓ All checks passed

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Laravel Nova 5 support?

1 participant