Posts

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

First get a copy of data folder and rename it as data copy or whatever name. then  get copy of backup folder and rename it as data. after that copy all   folders except mysql, performance_schema, phpmyadmin, test to new data folder. and also copy ibdata to new data folder from old one. Restoring Your Data: A Step-by-Step Guide Restoring your data can seem daunting, but it doesn't have to be. This guide provides a clear, step-by-step process to help you restore your data effectively. We'll be working with a "data" folder and a "backup" folder, so make sure you have these accessible. Preparation is Key: Before we begin, let's create a backup of your current "data" folder. This is a crucial step in case anything goes wrong during the restoration process. Duplicate your "data" folder: Locate your current "data" folder. Right-click on it and select "Copy." Then, in the same directory, right-click and select "P...

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

Schedule task documentation

 https://laravel.com/docs/11.x/scheduling

I added custom class for the last row of grid with checking loop count

@forelse ( $activeAreaGuides as $activeAreaGuide )     < div class = "col-xl-4 col-md-6" >         < div             class = "th-team team-grid             {{ $loop -> remaining < ( $loop -> count % 3 == 0 ? 3 : $loop -> count % 3 )                 ? 'custom-margin-last-row'                 : 'custom-margin-team-grid' }} " >             < div class = "team-img2" >                 < img src = " {{ env ('FILESYSTEM_URL') . $activeAreaGuide -> photograph }} " >             </ div >             < div class = "team-content" >                 < div class = "media-body" >   ...

Creating new helper function in laravel 11

  1. Create a Helper File Create a new PHP file to store your helper functions. Laravel doesn't come with a dedicated helper file by default, but you can create one in the app/Helpers directory (or any directory you prefer). Example: bash Copy code mkdir app/Helpers touch app/Helpers/helpers.php 2. Define Your Helper Function Add your function(s) to the new helper file. Example ( app/Helpers/helpers.php ): php Copy code <?php if (! function_exists ( 'greetUser' )) { function greetUser ( $name ) { return "Hello, $name !" ; } } 3. Include the Helper File You need to include this file in the application so that Laravel can load the functions. Option 1: Autoload via composer.json Edit your composer.json file and add the helper file under the autoload section: json Copy code "autoload" : { "files" : [ "app/Helpers/helpers.php" ] } After adding this, run the following command to regenerate...