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

Feature: Uses booted instead of the mount lifecycle method in the HasPageShield trait. #43

Merged
merged 2 commits into from
May 19, 2022

Conversation

oyepez003
Copy link
Contributor

To add an improvement in the HasPageShield trait, we can use the booted lifecycle method instead of the mount method.

This PR adds three hooks in the booted method beforeBooted(), beforeShieldRedirects(), afterBooted() and the new getShieldRedirectPath method to overwrite the redirection path if its required.

I've updated the Readme to specify more about those new changes.

Regards.

@bezhanSalleh bezhanSalleh added the enhancement New feature or request label May 19, 2022
@bezhanSalleh bezhanSalleh merged commit a72d31a into bezhanSalleh:main May 19, 2022
@bezhanSalleh
Copy link
Owner

thanks mate!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants