Posts

Showing posts from February, 2025

Restoring Your Data in Xampp: A Step-by-Step Guide

Image
Restoring your data can feel overwhelming, but it doesn’t have to be. This guide will walk you through the exact steps needed to restore a MySQL or MariaDB data folder safely using a backup. Whether you're fixing a database crash or migrating to a new server, following these instructions will keep your data intact and your applications running smoothly. Data Restoration Workflow 🛡️ Preparation is Key Before you begin, it’s crucial to back up your existing "data" folder . This ensures you can revert to the original state if anything goes wrong. ✅ Step 1: Back up your current data folder Navigate to the xampp/mysql  path Right-click it → Copy → Paste in the same directory. Rename the copied folder to something like data_copy or data_backup . ✅ Step 2: Rename the backup folder Find the folder named backup (this contains your restored data). Right-click it →  Copy  →  Paste  in the same directory. Rename it to data . 🔄 Restoration Process ...

SCSS usage for small and large screens

  Standard Responsive Breakpoints (Based on Bootstrap & Tailwind CSS) Name Screen Width (px) Usage xs (Extra Small) < 576px Very small devices (phones) sm (Small) 576px – 640px Small devices (phones) md (Medium) 641px – 768px Tablets lg (Large) 769px – 1024px Small laptops xl (Extra Large) 1025px – 1280px Desktops 2xl (Double Extra Large) > 1280px Large desktops Example of SCSS Mixin with Breakpoints If your @include sm is part of a mixin, it might be defined like this: scss Copy Edit @mixin xs { @media ( max-width : 575px ) { @content ; } } @mixin sm { @media ( max-width : 640px ) { @content ; } } @mixin md { @media ( max-width : 768px ) { @content ; } } @mixin lg { @media ( max-width : 1024px ) { @content ; } } @mixin xl { @media ( max-width : 1280px ) { @content ; } } @mixin xxl { @media ( max-width : 1536px ) { @content ; } } How to Use These Mixins scss Copy Edit @include sm { font-size : 14px ; margin-bottom :...

Laravel-AdminLTE Documentation

 https://jeroennoten.github.io/Laravel-AdminLTE/sections/configuration/plugins.html https://github.com/jeroennoten/Laravel-AdminLTE/wiki/Plugins-Configuration

How to create slug

In php laravel use Illuminate\Support\Str; class Post extends Model {     protected $fillable = ['title', 'content', 'slug'];     public static function boot() {         parent::boot();         static::creating(function ($post) {             $post->slug = Str::slug($post->title);         });     } } https://chatgpt.com/share/679dae98-24e8-8001-b0d5-02f4b60cb8e3