-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Feature/tenancy #441
base: 3.x
Are you sure you want to change the base?
Feature/tenancy #441
Conversation
PR Summary
|
…ield into feature/tenancy
This pull request includes significant updates to the FilamentShield package, introducing new functionalities and improvements to the codebase. The most important changes involve adding new traits for handling tenancy and command prohibitions, updating configuration options, and enhancing the language files.
New Traits for Handling Tenancy and Command Prohibitions:
CanGenerateRelationshipsForTenancy
trait to handle the generation of relationships for tenancy. This includes methods for generating relationships, guessing relationship types, and adding model return type import statements.CanMakePanelTenantable
trait to make a panel tenantable by setting up tenancy and activating tenancy middleware.CanBeProhibitable
trait to prohibit commands from running in certain environments, displaying a warning if attempted.Configuration and Language File Updates:
config/filament-shield.php
to include a newtenant_model
configuration option.resources/lang/en/filament-shield.php
) by adding translations forteam
fields and updating theselect_all
message. [1] [2]Codebase Enhancements:
MakeShieldGenerateCommand
toGenerateCommand
and included new options for panel selection and command prohibition. [1] [2] [3]composer.json
to add new dependencies and reorder existing ones.These changes collectively enhance the functionality, configurability, and maintainability of the FilamentShield package.