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…
Author: Arvind Kumar
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…
How to install Django and Run your first project in Mac
In this quick tutorial I will show you an example of the process I follow to setup and run a Django project in a matter of few minutes. When writing this tutorial, the version of python in my mac book…
2 methods to check if a given Date is Today’s Date in Laravel
In this tutorial I will show you two days to check if a given date is today’s date in Laravel. These 2 methods are isToday method and isSameDay method of Carbon library class in Laravel. First Method: Using IsToday() In…
PHP example of Null coalescing operator for shorthand If-Else operator
In this example we will see the use of the shortest shorthand of if-else statement to check isset variable in PHP programming language. Using Null coalescing operator we can write shortest if-else statement to check isset value and return it…
Example of Eloquent Model Query with conditional Where condition in Laravel
In this example I will show you how to build an Eloquent query to filter results by certain field or fields of a table. In this example we will use simple Laravel Eloquent Model example to search a table and…
How to Reinstall Pods in a Expo React native bare project in MacOS
Cocoapod is a package dependency manager for Objective-C and Swift projects with XCode. In a expo bare development environment you may need to re-install Cocoapods or in short Pods occasionally. In this tutorial I will show you the proper way…