Skip to content

Conversation

@MuhammadQuran17
Copy link

@MuhammadQuran17 MuhammadQuran17 commented Nov 20, 2025

Why configs should be in register(), not in boot()? As I know from docs: register() is used only to bind things and You should never attempt to register any event listeners, routes, or any other piece of functionality within the register method [ref]. It caused small error in our platform. We expand our core, from vendor, and in core we have a config merging logic in boot() like: client -> core -> fortify. For example Spatie packages, loads in boot and their solution works good with our logic. Just wondering why fortify did it in register()?
image Spatie packages example

!!!! Important. I did not double-check the fortify functionality of this MR, just relying to written tests. Just curious why in register()

@github-actions
Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@MuhammadQuran17 MuhammadQuran17 marked this pull request as ready for review November 20, 2025 10:39
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.

2 participants