Skip to content
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

Make policy path configurable #291

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Make policy path configurable #291

merged 2 commits into from
Dec 19, 2023

Conversation

lhilton
Copy link
Contributor

@lhilton lhilton commented Dec 18, 2023

My current application requires the policies for filament to be stored in another location than default. This PR makes the policy path configurable.

Copy link

what-the-diff bot commented Dec 18, 2023

PR Summary

  • Introduced flexible policy path configuration
    This change allows to specify the path of the policies in the config/filament-shield.php file. Now, instead of the path being hardcoded, you can set it as you prefer.

  • Updated policy path handling in file generation
    It also modifies certain methods in the src/Commands/Concerns/CanGeneratePolicy.php file. There is no longer a hardcoded policy path string. Instead, the path will be dynamically generated based on the path prefix set in the configuration. This leads to improved flexibility and customization for your project.

@bezhanSalleh bezhanSalleh merged commit 7fc7519 into bezhanSalleh:3.x Dec 19, 2023
5 checks passed
@bezhanSalleh
Copy link
Owner

neat, thanks!

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.

None yet

2 participants