Month: April 2025

Vue Laravel Production Tips

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

Create common helper function

User create common helper function like langauge table data to get anywhere controller, balde files Assistant To create a **common helper function** to fetch the `languages` table data that you can use **anywhere** — in controllers, Blade files, or Vue components (via Inertia) — follow these steps: — ### ✅ Step 1: Create a Helper […]

Prevent Duplicate Files Unzip

User when unzip foldder then a duplicate file IDentifire generated , don't want this Assistant When unzipping a folder (especially on Windows), a duplicate file identifier is often generated if a file or folder with the same name already exists in the destination directory. It may append names like `file (1).txt`, `folder (1)/`, etc. If […]

Simple Blade Template Laravel

User use simple blade template in laravel 12 Assistant In Laravel 12, using a simple Blade template is almost the same as previous versions. Here’s a basic step-by-step example to create and render a simple Blade template: — ### ✅ 1. **Create Route** In your `routes/web.php` file: use IlluminateSupportFacadesRoute; Route::get('/', function () { return view('welcome'); […]

DDEV Update Required

User Unable to install the 'adminer' add-on: your DDEV version 'v1.24.2' doesn't meet the constraint '>= v1.24.3'. Please update to a DDEV version that meets this constraint Assistant You're seeing this error because the `adminer` add-on requires **DDEV version `>= v1.24.3`**, but your current version is `v1.24.2`. ### ✅ To fix this, update DDEV: #### […]

Install Laravel 11

User Install laravel 11 using composer Assistant To install **Laravel 11** using Composer, run the following command in your terminal: composer create-project laravel/laravel:^11.0 project-name Replace `project-name` with your desired folder name. — ### ✅ Requirements for Laravel 11: Make sure your environment meets the following minimum requirements: – PHP >= 8.2 – Composer >= 2.5 […]

SSH Permission Denied Fix

User nethues@116.203.33.80: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). Assistant The error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). indicates your SSH client failed to authenticate to the server `116.203.33.80` using your public key. Here's how to resolve it step by step: — ### ✅ Step 1: Check Your SSH Key Make sure your private key (`id_rsa` or `your-key.pem`) has the correct permissions. […]

Gemini API Error Fix

User import React, { useState } from "react"; import { GoogleGenerativeAI } from "@google/generative-ai"; // Replace with your actual API key const API_KEY = "AIzaSyC3JBp40ft_NRkP5-Br8tTdj_ry9nDrJbU"; const ChatWithGemini = () => { const [input, setInput] = useState(""); const [response, setResponse] = useState(""); const handleSend = async () => { try { const genAI = new GoogleGenerativeAI(API_KEY); […]

Gemini API Usage

User use gemini api Assistant To use the Gemini API by Google in your project, follow these steps: ### Step 1: Get API Access – Sign in to [Google AI Studio](https://aistudio.google.com/app/apikey). – Create or select a project. – Generate an API key. ### Step 2: Install Google Gemini SDK Use npm for JavaScript: “`bash User […]

DB Password Sync Process

User the DB on hetzner is the single source for all of the websites There are 2 servers One Master and one Slave. There is a Load balancer which is simply pointing at one server for now. If we change the passwords. we need to do it on both servers. Assistant Yes, that's correct. Since […]