Blog

Disable forceTLS in Echo

User import Echo from 'laravel-echo'; import Pusher from 'pusher-js'; window.Pusher = Pusher; window.Echo = new Echo({ broadcaster: 'reverb', key: import.meta.env.VITE_REVERB_APP_KEY, wsHost: import.meta.env.VITE_REVERB_HOST, wsPort: import.meta.env.VITE_REVERB_PORT ?? 80, wssPort: import.meta.env.VITE_REVERB_PORT ?? 443, forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https', enabledTransports: ['ws', 'wss'], }); turn of forcetls Assistant To turn off the `forceTLS` option in your Laravel Echo configuration, […]

Laravel Vue Reverb Setup

User ddev laravel vue broadcast reverb intera js setup Assistant To set up broadcasting in a Laravel and Vue.js application using DDEV and Reverb for real-time communication, follow these steps: ### 1. **Install Reverb** If you haven't already, install Reverb in your Laravel project. You can do this via Composer: composer require reverb/reverb ### 2. […]

Laravel Echo Vue Setup

User add in laravel vue interia Assistant To implement Laravel Echo with Vue and Inertia.js in your Laravel application, follow these steps: ### Step 1: Install Laravel Echo and Pusher If you haven't already installed Laravel Echo and a broadcasting driver like Pusher, you can do so by running: yarn add laravel-echo pusher-js ### Step […]

Laravel Broadcasting Example

User Laravel broadcasting example Assistant Laravel broadcasting allows you to send real-time events to your application's front end. Here’s a simple example of how to set up broadcasting in a Laravel application using Laravel Echo and Pusher. ### Step 1: Install Required Packages First, you need to install the required packages. If you haven't already, […]

EC2 Deployment Timestamp Issue

User name: Deploy to EC2 on: push: branches: – master # Trigger on push to master branch jobs: deploy: runs-on: ubuntu-latest steps: – name: Checkout code uses: actions/checkout@v2 – name: Set up SSH env: PEM_FILE: ${{ secrets.PEM_FILE }} # Store your PEM file content in GitHub secrets run: | echo "$PEM_FILE" > key.pem chmod 600 […]

DDEV Docker Connection Issues

User admin1@PC-274:~/ddev-projects/syt$ ddev config Could not connect to a Docker provider. Please start or install a Docker provider. For install help go to: https://ddev.readthedocs.io/en/stable/users/install/docker-installation/ altohugh docker versio is 27 Assistant The error message you're encountering indicates that DDEV cannot connect to Docker, even though you mentioned that Docker version is 27. Here are some steps […]

Check Docker Container Space

User check docker container space Assistant To check the space used by your Docker containers and related resources, you can run the following commands: 1. **Check Disk Usage by Docker** This command gives a detailed breakdown of Docker disk usage: docker system df This will show: – Space used by images – Space used by […]

Uninstall Docker Compose Ubuntu

User uninstall docker compose from ubunut Assistant To uninstall Docker Compose from your Ubuntu system, you can follow these steps: 1. **Remove Docker Compose**: If you installed Docker Compose using the official method (downloading the binary), you can remove it with the following command: sudo rm /usr/local/bin/docker-compose 2. **Verify Uninstallation**: To confirm that Docker Compose […]

SFTP Deployment Workflow GitHub

User name: Deploy to EC2 on: push: branches: – master # Trigger on push to master branch jobs: deploy: runs-on: ubuntu-latest steps: – name: Checkout code uses: actions/checkout@v2 – name: Set up SSH env: PEM_FILE: ${{ secrets.PEM_FILE }} # Store your PEM file content in GitHub secrets run: | echo "$PEM_FILE" > key.pem chmod 600 […]

Git Pipeline SFTP AWS EC2

User git pipleline sftp aws ec2 custom Assistant Setting up a Git pipeline to deploy your code to an AWS EC2 instance via SFTP involves several steps. Here’s a general guide to create a custom pipeline for this purpose: ### Prerequisites 1. **AWS EC2 Instance**: Ensure your EC2 instance is running and you have SSH/SFTP […]