Events in Laravel?

In Laravel, events provide a simple observer implementation, allowing you to subscribe and listen for events that occur within your application. Events are useful for decoupling components and building more modular and maintainable code. The event system in Laravel is based on the Observer design pattern. Here’s a breakdown of the key concepts related to… Continue reading Events in Laravel?

Partitioning Concept In MySQL Table

Partitioning is a database design technique that involves splitting a large table into smaller, more manageable pieces called partitions. Each partition stores a subset of the data based on a specified criterion, such as a range of values, a list of values, or a hashing algorithm. Partitioning can improve query performance, facilitate data management, and… Continue reading Partitioning Concept In MySQL Table

Soft Delete in Laravel

In Laravel, “soft delete” refers to the practice of marking records as deleted instead of physically removing them from the database. Soft deleting is often used when you want to retain a record of the data but indicate that it should be considered as “deleted” in the application. This is achieved by adding a deleted_at… Continue reading Soft Delete in Laravel


In the EXPLAIN output in MySQL, the “Extra” column provides additional information about how MySQL is processing the query. When the “Extra” column shows NULL, it generally means that there are no additional special considerations or operations beyond the usual execution of the query. Here are some common scenarios where the “Extra” column might have… Continue reading Extra in EXPLAIN in MYSQL

Use of PHPCS and PHPCBF in WordPress

Once you have installed PHP_CodeSniffer (PHPCS) and PHP Code Beautifier and Fixer (PHPCBF), you can use them to check and fix coding standards for a specific file or directory. Here’s how you can use them: PHPCS (Checking Coding Standards): For a Single File: For a Directory: Example with WordPress Coding Standards: PHPCBF (Fixing Coding Standards):… Continue reading Use of PHPCS and PHPCBF in WordPress

Install WordPress Codding Standard PHPCS PHPCBF in UBUNTU

To install WordPress coding standards and PHP_CodeSniffer (PHPCS) along with PHP Code Beautifier and Fixer (PHPCBF) on Ubuntu, you can follow these steps: Ensure that Composer’s global bin directory is in your system’s PATH. You can add it to your ~/.bashrc or ~/.zshrc file: Then, refresh your shell: Or for zsh: After cloning, make sure… Continue reading Install WordPress Codding Standard PHPCS PHPCBF in UBUNTU

Laravel Install From Scratch

Working with Laravel from scratch involves several steps, including installation, setting up your development environment, creating a new project, and building features. Here’s a step-by-step guide to help you get started: 1. Install Prerequisites: Before you start with Laravel, make sure you have the following installed on your system: 2. Install Laravel: Open a terminal… Continue reading Laravel Install From Scratch