Month: October 2024

Docker Laravel Vue Setup

User docker laravel vue breeze setup when run localhost:8080 Failed to load resource: net::ERR_CONNECTION_REFUSED Assistant User is setting up a Laravel project with Vue and Breeze using Docker. Assistant The `ERR_CONNECTION_REFUSED` error when accessing `localhost:8080` typically indicates that the service is either not running or isn't accessible on the specified port. Here’s a checklist and […]

Regenerate Vite Manifest File

User Vite manifest not found at: /var/www/html/public/build/manifest.json I accidently deleted Assistant If you accidentally deleted the `manifest.json` file generated by Vite in your Laravel application, you can regenerate it by rebuilding your assets. Here’s how: 1. **Navigate to Your Project Directory**: Open your terminal and navigate to your Laravel project directory. 2. **Run Vite**: Since […]

Stop Docker Container

User stop the docker contaner Assistant To stop a Docker container, you can use the following command in your terminal: docker stop <container_id_or_name> Replace “ with the actual ID or name of the container you want to stop. You can find the container ID or name by listing all running containers: docker ps If you […]

Vite Manifest Not Found

User Vite manifest not found at: /var/www/html/public/build/manifest.json Assistant The error message "Vite manifest not found at: /var/www/html/public/build/manifest.json" indicates that Vite's build process hasn't generated the expected `manifest.json` file, which is essential for correctly loading assets in a Laravel application using Vite. Here are some steps to troubleshoot and resolve this issue: 1. **Install Dependencies**: Make […]

Docker Laravel Access Issue

User version: '3.8' services: app: build: context: . dockerfile: Dockerfile container_name: laravel_app volumes: – ./shareyourthoughts:/var/www/html networks: – laravel_network depends_on: – db ports: – "8080:80" # Change this to the desired host port db: image: mysql:8.0 container_name: laravel_db restart: always environment: MYSQL_DATABASE: laravel MYSQL_USER: laravel MYSQL_PASSWORD: password MYSQL_ROOT_PASSWORD: rootpassword volumes: – db_data:/var/lib/mysql – ./init-scripts:/docker-entrypoint-initdb.d networks: – […]

PhpMyAdmin Docker Connection Issue

User version: '3.8' services: app: build: context: . dockerfile: Dockerfile container_name: laravel_app volumes: – ./shareyourthoughts:/var/www/html networks: – laravel_network depends_on: – db ports: – "8080:80" # Change this to the desired host port db: image: mysql:8.0 container_name: laravel_db restart: always environment: MYSQL_DATABASE: laravel MYSQL_USER: laravel MYSQL_PASSWORD: password MYSQL_ROOT_PASSWORD: rootpassword volumes: – db_data:/var/lib/mysql – ./init-scripts:/docker-entrypoint-initdb.d networks: – […]

Add Adminer to Docker

User add phpadminer in docker Assistant Since you mentioned that your local development environment uses XAMPP instead of Docker, do you want to add Adminer to XAMPP? Adminer is an excellent lightweight alternative to phpMyAdmin that you can easily integrate with your setup. If you plan to add it to Docker later or in another […]

Database Connection Error Fix

User IlluminateDatabaseQueryException SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed: No such host is known. (Connection: mysql, SQL: select * from `sessions` where `id` = vWIPUy9vd3R9kRNAAgN8SEK8TX793LoJNEKI1eo0 limit 1) in laravek Assistant This error typically happens when Laravel can’t resolve the hostname for the MySQL service (usually named `db` in Docker setups) in the Docker environment. Here […]

Laravel Breeze Vue Docker Setup

User laravel breeze vue setup in docker Assistant To set up Laravel Breeze with Vue.js in a Docker environment, you need to ensure your Docker setup is properly configured to support a Laravel application with a Vue.js frontend. Here’s a step-by-step guide: ### 1. Update Your Docker Setup Ensure your `docker-compose.yml` includes Node.js. Here’s an […]

Docker Compose Laravel Setup

User version: '3.8' services: app: build: context: . dockerfile: Dockerfile container_name: laravel_app volumes: – .:/var/www/html networks: – laravel_network depends_on: – db ports: – "8080:80" # Change this to the desired host port db: image: mysql:8.0 container_name: laravel_db restart: always environment: MYSQL_DATABASE: laravel MYSQL_USER: laravel MYSQL_PASSWORD: password MYSQL_ROOT_PASSWORD: rootpassword volumes: – db_data:/var/lib/mysql – ./init-scripts:/docker-entrypoint-initdb.d networks: – […]