Sunday, February 18, 2024
Home Tips & Tricks

Tips & Tricks

Get file name from a path in PHP

Today, we will learn how to get the file name from a given path in PHP. There are various ways to achieve this, but...

Using has() vs hasFile() in Laravel

In this article, we will learn about using has() vs hasFile() methods in laravel. These are very common methods when handling form requests in...
laravel order by latest oldest newest

Laravel order by latest, oldest and newest

In this short article, we will learn about the meaning and usage of latest, oldest and newest methods in laravel. The latest and oldest...
Coding Standards

Coding Standards and Best Practices

Most of us assume that coding is the most important part of programming. As we develop more and more systems, mostly large systems, then...

Change Git Username and Email Address

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and...
remove empty categories in woocommerce

Get only Categories that Contain Products on Sale

While I was working on a project, I came across a situation where I need to filter all the categories with products on sale....

How to Easily Change PHP Version in Xampp

While working on web development projects, sometimes we need to change PHP versions. For example, when you are working on a Laravel project and...
import and export mysql command line

Import and Export SQL file into MYSQL using Command Line

In this short article, we will discuss how to import SQL file into MySQL database using command line. MYSQL is open-source relational database management...
splat operator

Splat Operator in PHP

The splat operator is used as three dots before variable (...) . It was introduced in PHP 5.6 but used rarely. In a simple...

How to use Dashicons in WordPress

Dashicons were introduced in WordPress 3.8. These are official icons on WordPress. Dashicons are already included in the WordPress admin. It’s easy to add...