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

Namespace error in windows #15

Open
geraldarcega opened this issue May 4, 2017 · 0 comments
Open

Namespace error in windows #15

geraldarcega opened this issue May 4, 2017 · 0 comments

Comments

@geraldarcega
Copy link

Hi! First of all, I want to thank you for your great tutorial about REST API development and for providing this fork.

I don't know if this is a bug or not but when developing in Windows I encounter an error regarding routes, the error says Class Api\:\path\larapi\api\Users\Controllers\UserController does not exist.

In this line of codes https://github.com/esbenp/larapi/blob/master/config/optimus.components.php#L5-L6, I manage to fix the error by removing base_path()

so it should look like this
'namespaces' => [ 'Api' => DIRECTORY_SEPARATOR . 'api', 'Infrastructure' => DIRECTORY_SEPARATOR . 'infrastructure' ],

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

No branches or pull requests

1 participant