Lomkit / laravel-rest-api

Generate Api in seconds
https://laravel-rest-api.lomkit.com/
MIT License
298 stars 18 forks source link

Artisan Commands Creating Files in Incorrect Location #34

Closed mikesocorecc closed 10 months ago

mikesocorecc commented 10 months ago

Laravel Rest Api Version

1.0.0

Laravel Version

9.45

PHP Version

8.1.20

Database Driver & Version

8.0.31

Description

Operating System: Ubuntu 20.04 (running on Windows with WSL2)

On Ubuntu 20.04, running on Windows with WSL2, when I execute the artisan command to create a controller (php artisan rest:controller ActivityController), it appears to generate the file in the root directory rather than the intended app/Http/Controllers directory. The behavior is not as expected and seems to be related to the configuration or a potential bug in the package.

Steps To Reproduce

Navigate to the Laravel project root directory. Execute the command .php artisan rest:controller ActivityController Observe that the is created in the root directory / instead of ActivityController.php app/Http/Controllers

GautierDele commented 10 months ago

The default behavior should be "App/Rest/Controllers", i'm gonna have a deep look tomorrow but Im confused about this since i'm also using wsl2