Blog

Order Status Broadcasting

User Broadcast and event with example of order status update Assistant ### **Broadcasting and Events Example: Order Status Update in Laravel** In Laravel, broadcasting events allow real-time updates to be sent to the frontend via WebSockets. Let’s go through an example where an **order status update** is broadcasted to the frontend. — ### **1. Install […]

Laravel Broadcasting Vue Setup

User Laravel broadcasting with example with external Vue application on same server Assistant ### **Laravel Broadcasting with External Vue Application on the Same Server** Laravel Broadcasting allows real-time event-driven communication between the backend and frontend using WebSockets. Below is a step-by-step guide to implementing broadcasting in Laravel with an external Vue application hosted on the […]

JavaScript Advanced Features

User Javascript advance feature with examples Assistant JavaScript has several advanced features that make it a powerful and flexible language for modern web development. Here are some key advanced features with examples: — ### 1. **Closures** Closures allow a function to retain access to its lexical scope even when executed outside its original scope. function […]

Git Commands Guide

User Git all commands and description Assistant Here is a comprehensive list of Git commands with their descriptions: ### **1. Configuration** – `git config –global user.name "Your Name"` – Set the user name for commits. – `git config –global user.email "your.email@example.com"` – Set the email for commits. – `git config –global core.editor "vim"` – Set […]

Clone Bitbucket with App Password

User clone using bitbucket app password so that don't need to enter pwd each time pull/push Assistant To clone a Bitbucket repository using an **app password** so that you don’t need to enter the password each time you pull/push, follow these steps: ### 1. **Create an App Password in Bitbucket** – Log in to your […]

Unauthorized domain error fix

User Error during login: Firebase: Error (auth/unauthorized-domain) Assistant The `auth/unauthorized-domain` error in Firebase Authentication occurs when the domain from which you're trying to log in is not listed as an authorized domain in your Firebase project settings. Here’s how you can fix it: ### **Solution: Add Your Domain to Firebase Authentication Settings** 1. Go to […]

Vue build subfolder setup

User run vue build in subfolder in server Assistant If you want to run a Vue build inside a subfolder on your server, follow these steps: ### 1. **Modify Vue Config for Subfolder Deployment** Since Vue assumes the app is deployed at the root by default, you need to update `vue.config.js` to specify the subfolder: […]

SSH Key Already Added

User Someone has already added that SSH key Assistant If you're seeing the error **"Someone has already added that SSH key"**, it means the SSH key you're trying to add is already associated with another account or repository. Here’s what you can do to resolve it: ### **1. Check if the Key is Already in […]

EC2 Laravel Storage Writable

User aws ec2 laravel storage folder not wrtiable Assistant If your Laravel `storage` folder is not writable on your AWS EC2 instance, follow these steps to fix the issue: ### **1. Check Ownership & Permissions** Run the following commands to set the correct ownership and permissions for your Laravel `storage` and `bootstrap/cache` folders. cd /var/www/share […]

Gitignore Laravel Firebase Exception

User .phpunit.cache node_modules public/hot public/storage storage/*.key vendor .env .env.backup .env.production .phpactor.json .phpunit.result.cache Homestead.json Homestead.yaml auth.json npm-debug.log yarn-error.log /.fleet /.idea /.vscode /.ddev/* !/.ddev/config.yml /.zed tests bitbucket-pipelines.yaml bitbucket-pipelines.yml vite.config.js allow storage/app/firebase/f.json Assistant It looks like you're listing entries for a `.gitignore` file, likely for a Laravel and Vue.js project using Docker, DDEV, and Bitbucket Pipelines. If you […]