Skip to content

SuperAdmin Command Enhancements and Robustness Fix (4.x) #586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 4.x
Choose a base branch
from

Conversation

yiiman-dev
Copy link

Summary of changes

  • Improved Panel Provider Path Handling:
Added support for specifying a custom --panel-provider-path option in the InstallCommand, improving the flexibility for projects where the Filament panel provider file path differs from the default location.

  • When the Filament user table does not have an id column, creating a super admin user with Shield fails.
    This issue has now been resolved by adding a --user-column option to SuperAdminCommand.php.

No refactoring or unrelated changes were made; all updates focus on improving installation command flexibility and multi-tenancy support, as reflected in the commits linked.

These changes improve installation flexibility for customized project structures and enhance multi-tenancy support during the package setup.

…/Filament/PanelProvider.php, the Shield installation fails.

This issue has now been resolved by adding a panel-provider-path option to InstallCommand.php.
…uper admin user with Shield fails.

This issue has now been resolved by adding a --user-column option to SuperAdminCommand.php.
Copy link

what-the-diff bot commented Aug 5, 2025

PR Summary

  • Enhancements to InstallCommand.php

    • We've added an option that allows you to specify the location of the Filament provider. This simplifies setup as you can directly define where your Filament provider is.
    • The way Filament path is determined has also been made more adaptable. This is influenced by whether or not you've provided your specific Filament provider location.
  • Updates to SuperAdminCommand.php

    • We've added an option to designate the column used to search for users in the user table. This brings flexibility in how you find users.
    • If you don't provide any specific column for user search, it will default to searching users by their ID. This maintains usability even if no specifics are provided.

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.

1 participant