I am in the starting phase of using Typescript and I am sharing this code which I created to merge two different CSS definition files to combine and use merged css styles. I used similar code to combine two javascript…
How to Set and Get a new attribute in a Model in Laravel 9+
Laravel has unique way to set and get a new or custom attribute in a model. I will explain with help of an example. Accessors (Getters) and Mutators (Setters) in Laravel Mutators Mutators are used to transform model attributes. See…
How to fix WordPress “the website is undergoing scheduled maintenance…” error
While doing a plugin update on a WordPress website I accidentally clicked on a link on the update page and it took me away to another page. Consequently it disrupted the ongoing update process and it left the website in…
How to add path alias in React Native and to configure editors
Isn’t it frustrating to locate a file by path, for example by “../../../../../path/to/component” in import or require calls. Is there a better way for example making it like @core/component or @src/component? Yes, there is. Using path alias in React Native…
Create and Apply git patch between two branches for selected files
While using git we can create a PR (pull request) to push changes from one git branch into another branch. This is okay if you want to push all changes from one branch into another branch and vice versa Sometimes…
Git add a directory to remote repository by origin URL
Following the following steps one can add a folder to existing Github repository. These steps can be and should be followed to add a directory to any git repository, whether it is on Github or Bitbucket or any other server.I…
How to check If Database Table Column Exists in Laravel Migration
In this short Laravel tutorial you will learn how to do a Laravel migration check to see if a column exists in a database table. By doing this migration check you can avoid a fatal error such as the following…
Check if an Array is Empty or Not in PHP
In this post, we will explore how to check if an array is empty in PHP using the empty() function and the count() function. I’ll provide you with the example code and then modify it in different ways to demonstrate…
How to get Array Length in PHP
In this post, we will provide a quick and easy method to determine the length of a PHP array.We will present a simple example of how to calculate the length of an array in PHP. How to get Array Length…
Get Duplicate Values from an Array in PHP
In this post, we will explore how to identify duplicate values in a PHP array. We’ll provide you with an example of how to retrieve duplicate values from an array in PHP. Get Duplicate Values from an Array in PHP…