larapi icon indicating copy to clipboard operation
larapi copied to clipboard

Cannot start api

Open garenk02 opened this issue 7 years ago • 7 comments

Hi @esbenp : I already follow all the instruction step by step, then when I try to run the app, it return error: Class Infrastructure ....\infrastructure\Api\Controllers\DefaultApiController does not exist

is there any installation that I missed

Thank's in advance

garenk02 avatar Apr 16 '17 04:04 garenk02

Can you paste the code for controller that you try to access?

esbenp avatar Apr 17 '17 05:04 esbenp

This is the screenshot of error that occur: larapi

Thank's

garenk02 avatar Apr 17 '17 06:04 garenk02

Hello I have the same problem. (Windows) screenshot

Thank's

seyyedRezaRazavi avatar Apr 18 '17 06:04 seyyedRezaRazavi

Hmm have you guys tried running Larapi without it being served using Laravels build-in server? Have you tried using something like nginx or similar?

esbenp avatar Apr 18 '17 07:04 esbenp

Thank you for your prompt response to the questions

yes i tried with xampp

i added full path in every route and resolved this issue. $router->get('/', '\Infrastructure\Api\Controllers\DefaultApiController@index'); instead of $router->get('/', 'DefaultApiController@index');

can we fix this issue ?

seyyedRezaRazavi avatar Apr 18 '17 08:04 seyyedRezaRazavi

@esbenp I already tried without laravel build-ind server, but still error @seyyedRezaRazavi I will try follow that way

Thank you guys

garenk02 avatar Apr 18 '17 09:04 garenk02

@seyyedRezaRazavi salam, bebakhshid shoma ba in repo moshkeli nadareed, man error exception migiram, mitoonid komak konid?

pishguy avatar Nov 27 '17 15:11 pishguy