Blog

SSH Key Permission Denied

User ubuntu@ip-172-31-0-233:/var/www/wprock$ ssh -T git@bitbucket.org git@bitbcket.org: Permission denied (publickey). ubuntu@ip-172-31-0-233:/var/www/wprock$ Assistant The error: git@bitbcket.org: Permission denied (publickey) has a **typo in the hostname** — you're trying to connect to: git@bitbcket.org It should be: git@bitbucket.org ### ✅ Fix: Run the command again with the correct hostname: ssh -T git@bitbucket.org If you're still getting a permission error […]

Add multiple pages React

User How add multiple pages react Assistant To add **multiple pages in React**, you'll typically use a **routing library** like [`react-router-dom`](https://reactrouter.com/). Here’s a step-by-step guide: — ### ✅ 1. **Install React Router** If not already installed: npm install react-router-dom # or yarn add react-router-dom — ### ✅ 2. **Set up Router in your App** In […]

Forgot Password Firebase Vue

User create forgetpassword for firebase user tha signed with createUserWithEmailAndPassword with out logged in vue Assistant To implement **"Forgot Password"** functionality in Vue.js using Firebase Authentication for users created with `createUserWithEmailAndPassword`, even if they're not logged in, you can use Firebase's `sendPasswordResetEmail()` method. Here’s how you can set it up in Vue (Composition API style): […]

Laravel DB Auth Routes

User we have change firebase auth to laravel db auth // router/protectedRoutes.ts import { useAuthStore } from '@/stores/auth'; import ChatRoom from '@/views/ChatRoom.vue' import FrontLayout from '@/layouts/FrontLayout.vue' import type { RouteRecordRaw } from 'vue-router' const ADMIN_EMAIL = import.meta.env.VITE_MAIN_ADMIN_EMAIL // ✅ Wait for Firebase auth state to initialize const waitForAuth = async (): Promise => { return […]

Add column migration

User Add new col using migration Assistant To add a new column using a Laravel migration, follow these steps: ### Step 1: Create a new migration Use the Artisan command: php artisan make:migration add_column_name_to_table_name_table Replace `column_name` with your new column, and `table_name` with the target table. ### Step 2: Edit the migration file Open the […]

Verify User on Login

User // stores/userStore.ts import { defineStore } from 'pinia' import { ref } from 'vue' import { auth } from '@/firebase' import { onAuthStateChanged, type User } from 'firebase/auth' import { logoutUser as firebaseLogout } from '@/dbstore/firebase/userService' export const useUserStore = defineStore('user', () => { const currentUser = ref(null) const isLoggedIn = ref(false) const initAuth […]

SMTP 550 Error Fix

User Fatal error: Uncaught exception 'Swift_TransportException' with message 'Expected response code 250 but got code "550", with message "550 5.7.1 Unconfigured Sending Domain "' in /var/www/reports/lib/Swift-3.3.2-php5/lib/classes/Swift/Transport/AbstractSmtpTransport.php:383 Stack trace: #0 /var/www/reports/lib/Swift-3.3.2-php5/lib/classes/Swift/Transport/AbstractSmtpTransport.php(281): Swift_Transport_AbstractSmtpTransport->_assertResponseCode('550 5.7.1 Uncon…', Array) #1 /var/www/reports/lib/Swift-3.3.2-php5/lib/classes/Swift/Transport/EsmtpTransport.php(270): Swift_Transport_AbstractSmtpTransport->executeCommand('??.??', Array, Array) #2 /var/www/reports/lib/Swift-3.3.2-php5/lib/classes/Swift/Transport/AbstractSmtpTransport.php(333): Swift_Transport_EsmtpTransport->executeCommand('??.??', Array) #3 /var/www/reports/lib/Swift-3.3.2-php5/lib/classes/Swift/Transport/AbstractSmtpTransport.php(428): Swift_Transport_AbstractSmtpTransport->_streamMessage(Object(Swift_Message)) #4 /var/www/reports/lib/Swif in /var/www/reports/lib/Swift-3.3.2-php5/lib/classes/Swift/Transport/AbstractSmtpTransport.php on line 383 Assistant The […]

Admin Auth Issue Fix

User import AdminLayout from '@/layouts/AdminLayout.vue' import AdminLogin from '@/views/admin/Login.vue' import AdminDashboard from '@/views/admin/AdminDashboard.vue' import { auth } from '@/firebase' import type { User } from 'firebase/auth' const MAIN_ADMIN_EMAIL = import.meta.env.VITE_MAIN_ADMIN_EMAIL const waitForAuthState = async (): Promise => { return new Promise((resolve) => { const unsubscribe = auth.onAuthStateChanged((user) => { unsubscribe() resolve(user) }) }) } // […]

Vue 404 Page

User Add 404 page in vue Assistant To add a **404 Not Found page** in a Vue 3 project (with Vue Router), follow these steps: — ### ✅ Step 1: Create the `NotFound.vue` Page In your `src/views` or `src/pages` folder, create a new file: <!– src/views/NotFound.vue –> <template> <div class="not-found"> <h1>404 – Page Not Found</h1> […]

Vue Tab Active Fix

User @extends('layouts.admin') @section('plugins.Summernote', true) @section('plugins.icheckBootstrap', true) @section('plugins.TempusDominusBs4', true) {{– Customize layout sections –}} @section('subtitle', __('Edit – Survey')) {{– Content body: main page content –}} @section('content_body') {{ __('Edit Survey') }} @if($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif @if(session()->has('message.level')) {!! session('message.content') !!} @endif {{ __('Loading…') }} {{ __('Loading survey creation…') }} 1 Survey 2 […]