You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I hit endpoint /api route, so it's should be return json.
But it's work if I hit just base url. Example (bloger.test), it's resulting page laravel (work fine)
Steps to reproduce the issue:
just hit endpoint laravel /api, Example:
curl -i bloger.test/api
Relevan Code & Additional info:
.env laradock
# Point to the path of your applications code on your host
APP_CODE_PATH_HOST=../project-lara
# Point to where the `APP_CODE_PATH_HOST` should be in the container
APP_CODE_PATH_CONTAINER=/var/www/app
# Select a PHP version of the Workspace and PHP-FPM containers (Does not apply to HHVM).
# Accepted values: 8.0 - 7.4 - 7.3 - 7.2 - 7.1 - 7.0 - 5.6
PHP_VERSION=7.4
# Enter your Docker Host IP (will be appended to /etc/hosts). Default is `10.0.75.1`
DOCKER_HOST_IP=127.0.0.1 -> fist time it's (10.0.75.1)
@zhangpf41 Are you facing the same problem?
I don't really remember exactly how do I resolve it, but it's relevan with xdebug. You can log php-fpm container and see your problem. What I remember is xdbebug can't find file on folder (I think bootstrap/cache). It's because xdebug version have different settings
Info:
Docker version ($ docker --version): Docker version 20.10.12, build e91ed57
Laradock commit ($ git rev-parse HEAD): df4ccf5
docker-compose version ($ docker-compose --version): docker-compose version 1.29.2, build 5becea4c
System info:
Issue:
I can't get expected response when I hit /api endpoint of laravel project, it's resulting
Expected Behavior:
I add on routes/api.php
If I hit endpoint /api route, so it's should be return json.
But it's work if I hit just base url. Example (bloger.test), it's resulting page laravel (work fine)
Steps to reproduce the issue:
just hit endpoint laravel /api, Example:
Relevan Code & Additional info:
please for help
Thanks
The text was updated successfully, but these errors were encountered: