(02-Sep-2026) A Laravel 13.x Docker auth API, with emails, for www.github.com/kkamara/AuthenticationMobileApp .
Postman API Collection for Authentication Mobile App Backend.
Postman API Environment for Authentication Mobile App Backend.
# Create our environment file.
cp .env.example .env
# Update database values in .env file.
# Install our app dependencies.
composer i
php artisan key:generatenpm install --global yarn
yarn install
yarn build# Website accessible at http://localhost:80 .
docker-compose up -d
# Run event listener that runs dispatched jobs
# like send email verification.
docker exec app php artisan queue:listen --tries=1
# Run database commands.
docker exec app php artisan migrate --path=database/migrations/V1 --seed
# OR
docker exec -it app sh
> php artisan migrate:status --path=database/migrations/V1
> php artisan migrate --path=database/migrations/V1 --seedphp artisan route:listphp artisan test --filter=APIView the feature test code here.
docker run -p 8025:8025 -p 1025:1025 mailhog/mailhogEnsure MAIL_MAILER setting in your .env file is set to smtp. After running the above command this app should now be able to connect to the Mailhog email server running through Docker.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
