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

Fix/496 - Fix controller's name when in creation by craft controller there the slash between folder and controller's name. #497

Merged
merged 5 commits into from
Jan 20, 2022

Conversation

Marlysson
Copy link
Contributor

Closes #496
Fix controller's name when in creation by craft controller there the slash between folder and controller's name.

I've tried handle relative paths with controllers_path() from better way 😅
Maybe needed a refactor just let me know.

@josephmancuso I would implement tests, but I didn't found any tests for commands for now in project.

@josephmancuso josephmancuso changed the title Fix/496 Fix/496 - Fix controller's name when in creation by craft controller there the slash between folder and controller's name. Jan 18, 2022
@josephmancuso
Copy link
Member

We should be able to do this in a cleaner way ill have to take a look. This is a little messy tbh.

@josephmancuso josephmancuso merged commit ceeb680 into MasoniteFramework:4.0 Jan 20, 2022
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.

Controller creation with slash in its name like "craft controller api/NameController" creates invalid name
2 participants