When logging the user I am having this problem with Laravel 7. All the data in my database seems to be correct. I use port 3307 and I am using Docker for the project.
My .env are:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3307
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
For the mysql service in docker I use:
version: '3'
networks:
laravel:
services:
nginx:
image: nginx:stable-alpine
container_name: e-learning-app_nginx
ports:
- "8087:80"
volumes:
- ./src:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- mysql
networks:
- laravel
mysql:
image: mysql:5.7
container_name: e-learning-app_mysql
restart: always
tty: true
ports:
- "3307:3306"
environment:
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
SERVICE_TAGS: dev
SERVICE_NAME: mysql
networks:
- laravel
volumes:
- ./mysql:/var/lib/mysql
php:
build:
context: .
dockerfile: Dockerfile
container_name: e-learning-app_php
volumes:
- ./src:/var/www/html
ports:
- "9007:9000"
networks:
- laravel
Edit: I put the docker-compose.yml
complete.
I do not know what is the problem. The strange thing is that the migrations run fine for me and from client to db I can connect everything fine. I already tried clearing cache of routes and configurations... I'm using auth.