esbenp / esbenp/larapi

Namespace error in windows

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
399
Forks
114
PR merge metrics
No merged PRs in 30d

Description

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'
],
`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.