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

Fixed target namespace when creating files with Laravel Idea #497

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

andrey-helldar
Copy link
Contributor

@andrey-helldar andrey-helldar commented Jul 7, 2023

If you specify a target directory, such as "app/Data", the files will always be created in this directory, even if the main namespace of the application or package is in another folder, such as "src":

app
  Data
    SomeData
src
  Console
  Enums

Replacing the target directory with a namespace parameter will allow the Laravel Idea plugin to create files inside the application's Namespace:

src
  Console
  Data
    SomeData
  Enums

Untitled Project

@rubenvanassche
Copy link
Member

Wow this is great, thanks!

@rubenvanassche rubenvanassche merged commit e767c8c into spatie:main Aug 4, 2023
9 checks passed
@andrey-helldar andrey-helldar deleted the patch/2023-07-08/02-21 branch August 4, 2023 08:36
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