Blog

Change meta title Vue

User change meta title on page chanfge in vue Assistant To dynamically **change the meta title when the page (route) changes in Vue**, here’s how you can do it depending on your setup: — ### ✅ **If you're using Vue Router (with Vue 3 or Vue 2)** #### 1. **Add a meta title in your […]

Skip Build Deploy Dist

User We have setup firebase:github hosting with build but now want to remove build step just want to forwar dist folder content Assistant If you want to **skip the build step** in your Firebase GitHub Actions workflow and **deploy only the `dist/` folder** (which is already built and committed or copied), here’s how you can […]

Fallback language handling

User print_r($sc->translations->where('language', $participant->language)->first()->title); set fallback language en if no language selected Assistant You can modify your line to fall back to `'en'` if no translation is found for the participant's selected language. Here's the improved version: $title = optional($sc->translations->where('language', $participant->language)->first()) ?? $sc->translations->where('language', 'en')->first(); print_r(optional($title)->title); Or more concisely using null coalescing: $title = $sc->translations->where('language', $participant->language)->first() ?? […]

Validation rules explanation

User $validationRules = [ 'survey_order_id' => 'required', 'participant_id' => 'required', 'rating' => 'required', 'rating.*.participant_id' => 'required', 'rating.*.survey_order_id' => 'required', 'rating.*.competence_id' => 'required', 'rating.*.question' => 'required', 'rating.*.rating' => 'required', ]; explain above Assistant The `$validationRules` array you've defined is used in Laravel to validate incoming request data (typically in a controller or form request). Let’s break […]

Cannot find defineNuxtConfig

User Cannot find name 'defineNuxtConfig'. Assistant The error **"Cannot find name 'defineNuxtConfig'"** usually means TypeScript doesn't recognize the `defineNuxtConfig` function in your Nuxt configuration file. ### ✅ Here's how to fix it: #### 1. Make sure your `nuxt.config.ts` looks like this: // nuxt.config.ts export default defineNuxtConfig({ // your Nuxt config options }) #### 2. Check […]

SSH Public Key Example

User Can you send me a SSH Public Key please? Assistant Sure! Here's an example of a **SSH public key** you can use (note: this is a **dummy key**—you'll need to generate your own for secure access): ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVLhDd8p/0t6ZK9cX5c/Voq3TzYp6w9Q1q9Er4D4U7v7NVlR6+OKBvWy8tXbq4B8NLu1gZyQG0vZKaZ9Ab0hIQjsi9E+2HaJxF6a7xP0x6Gd6TPrzv1xW4Lf+3QOEcLo3+qFkRM9Y5VEXAMPLEKEYONLYYVR0YxTxRkNo4Ccm5sFi7ZkZ user@example.com If you want to generate your **own SSH key pair**, you can do so on […]

Delete WooCommerce Orders

User delete data from wp_posts and wp_postmeta before 1st January 2022 for woocommerce orders Assistant To delete **WooCommerce orders** and their related metadata from the `wp_posts` and `wp_postmeta` tables **before January 1, 2022**, run the following SQL queries: ### ⚠️ **Important:** > **Take a full database backup** before executing these queries. Deleting posts directly from […]

Dynamic Link in PHP

User Pass dynamic link for click here Assistant You can dynamically pass a URL by replacing **`click here`** with a “ tag and using `esc_url()` to safely output the link. Here's the updated code: <?php $order_link = site_url('/order-archive'); // Change this to your actual archive page URL ?> <p> <?php printf( esc_html__( 'If you would […]

Git remote token setup

User git remote add origin https://github.com/NeerajTi/salesiq.git add token Assistant To use a **GitHub token** with the `git remote add origin` command, you need to include the token in the **remote URL** in place of your password. Here's the correct format: git remote add origin https://<YOUR_GITHUB_TOKEN>@github.com/NeerajTi/salesiq.git ### Example: git remote add origin https://ghp_abc123xyz456TOKEN@github.com/NeerajTi/salesiq.git > 🔒 **Important:** […]

Firestore connection timeout error

User [2025-04-14T07:04:43.350Z] @firebase/firestore: Firestore (11.6.0): Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds. This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend. Assistant This Firestore warning means […]