larapi icon indicating copy to clipboard operation
larapi copied to clipboard

Namespace error in windows

Open geraldarcega opened this issue 7 years ago • 0 comments

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

geraldarcega avatar May 04 '17 02:05 geraldarcega