Blog

Show MySQL Databases SSH

User show all databases mysql ssh Assistant To **list all MySQL databases via SSH**, follow these steps: ### ✅ Step-by-step 1. **SSH into the server**: ssh username@your_server_ip Replace `username` and `your_server_ip` with your actual SSH credentials. 2. **Log into MySQL** (adjust `-u` and `-p` as needed): mysql -u root -p or if you're using a […]

3 Step Form Laravel

User add 3 step form in laravel create.blade template survey Pillers questions survey step will have name, 3 checkbox piller (depen on survey) en titile,de title,wieght,position question give piller dropdown en title,de title, position,piller id user cannot got piller if survey not filled and created in db Give laravel code 3 step form Assistant Here’s […]

Encrypt survey ID

User $surveys = Survey::orderBy('id', 'desc')->paginate(config('app.records_per_page')); change id integer to encrypted using crypt Assistant To **encrypt the `id` field in your paginated `$surveys` collection**, you can’t modify the SQL query itself to return encrypted IDs, since Laravel’s `Crypt::encrypt()` is a PHP function, not SQL. Instead, you can **map** over the collection *after* retrieving the paginated data […]

Survey Creation Issue

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 Loading… {{ __('Loading survey creation…') }} 1. Survey 2. Pillers 3. […]

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 […]