Support discovery for modular directory structures#581
Open
soleinjast wants to merge 12 commits intolaravel:mainfrom
Open
Support discovery for modular directory structures#581soleinjast wants to merge 12 commits intolaravel:mainfrom
soleinjast wants to merge 12 commits intolaravel:mainfrom
Conversation
Contributor
|
This is something that whatever modular package you are using should provide---for example: https://github.com/InterNACHI/modular/tree/main/resources/boost |
Member
Contributor
Author
|
@pushpak1300 I’ve left a comment on #465 that’s related to this PR. |
|
Hello, |
Member
|
can we fix the merge conflicts here ? |
…ss-discovery # Conflicts: # tests/Unit/Install/GuidelineAssistTest.php
… into feature/modular-class-discovery
Contributor
Author
@pushpak1300 It's ready! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for modular Laravel project discovery in Laravel Boost by consuming architecture signals exposed by
laravel/roster.By default, Boost only scans the
app/directory. With this change, when Roster detects a MODULAR project structure, Boost will also discover classes located under a root-levelmodules/(orModules/) directory.Motivation
Many Laravel applications use a modular architecture where domain code (such as Eloquent models, controllers, or enums) lives outside the
app/directory.Previously, Boost was unable to detect these classes, resulting in incomplete or misleading context during AI-assisted workflows.
This change delegates architecture detection entirely to
laravel/roster, allowing Boost to remain simple and deterministic while supporting modular Laravel applications.Behavior
app/directory by defaultMODULARapproach:modules/Modules/(case-insensitive)app-modules/Related Work
laravel/rosterrelated #465