Today’s tutorial demonstrates how to configure GitHub ssh in your Ubuntu 22.04 operating system. We often use git and GitHub for development purposes, so connecting to remote Github is an important step in our development journey. Follow the below steps to connect your local machine to GitHub remote by configuring the GitHub ssh key. Adding…Continue Reading
Docker Install Ubuntu : docker-desktop : Depends: docker-ce-cli but it is not installable
Problem I was experiencing an issue when installing the docker desktop on Ubuntu 22.04, as it throws the below error when I ran the below command.
What is the opposite of has() method in Laravel?
We all know the has() method helps list a number of records with at least a related record in Laravel Eloquent. For example, below we can get all posts that have at least one comment. $posts = App\Models\Post::has(‘comments’)->get(); But what would be the opposite of this? How do we get a post that has zero…Continue Reading
Laravel: Download files to storage from SFTP
This post will discuss using Laravel to read and download files from a remote server via SFTP. For this purpose, we use a third-party package to connect to sftp and download the files to the storage folder in Laravel. The first and most important step is to install and configure the league/flysystem-sftp in the Laravel…Continue Reading
Why You Should Use Node Js For Enterprise Software?

Enterprise software is developed to manage complicated tasks, such as monitoring and controlling essential business operations, gathering and analyzing data, and enforcing security policies. These programs tend to be complex, requiring much user input and a wide variety of separate but related components. The optimization of these applications is another potential obstacle. Additionally, enterprise apps…Continue Reading
How to get the total memory and free memory of a system using Node.js?
In today’s article, we will discuss how to get the total memory and available memory of the system using NodeJS. To get the total memory of the operating system using NodeJS, you can use method from the module in Node.js. Note that this method returns total memory in bytes. // import os module const os…Continue Reading
What is the difference between shuffle() and array_rand() in PHP?

What exactly is the difference between shuffle and array_rand functions in PHP? void shuffle ( array input) mixed array_rand ( array input [, int num_req]) takes an array and completely randomizes the array. You may have noticed that uses its parameter by reference and returns true. The downside of this function is it changes the…Continue Reading
Download the official iPhone 14 and 14 Pro wallpapers in full resolution

IOS 16 has been launched and it’s available for everyone. Moreover, apple had launched the new iPhone 14, so why wait? Download and experience the new line of wallpapers for your iPhone 14 and iPhone Pro. As for the new iPhone 14 wallpapers, there’s a new one for each device color, but there is no…Continue Reading
Laravel Eloquent- Where Condition with Two Columns

Did you ever think about how to write where condition with two columns(fields) in Laravel Eloquent? In the first place, this is possible in Laravel using the function . For example, you have two fields named sub_total and grand_total, and you need to find all the orders have the same sub_total as grand_total. So you…Continue Reading
How to Add Foreign Key in Laravel Migration?
This tutorial shows how to add a foreign key constraint to a field in Laravel in the migration file. As we know already a foreign key is a field that is used to establish the relationship between two tables via the primary key. This example starts with creating a migration file in Laravel and shows…Continue Reading
What is Str::finish() in Laravel ?

In this article, you will learn about Str::finish() in Laravel. The next question is how to incorporate Str::finish() into your project. If a string does not already end with the given value, the Str::finish method adds a single instance of that value to it:
How to organize email testing in PHP?
What is PHPMailer and how do you use it to send test emails via SMTP in PHP? Find out this and more on email testing in PHP here. How to organize email testing in PHP PHP is one of the most popular languages for web development, so it’s no wonder that email sending and testing…Continue Reading
How to Substract and Add Hours in Laravel Using Carbon?

In today’s article we will illustrate how to use the Carbon library to add and subtract from a given time in Laravel. As you know already, Laravel is capable of doing pretty much anything. This is tested with Laravel7, 8,9 versions. Here you need to take note of Carbon – Well known PHP API for…Continue Reading
How to Get Last Week Data in Laravel using Carbon?
In today’s tutorial, we are showing how to get last week’s data in Laravel using Carbon. In other words, you need to pull all the orders received in the last week. In this case, last week does not mean the last 7 days, but it’s a full week starting from Monday to Sunday. For example,…Continue Reading
Differences between query() and input() in Laravel?

You may be wondering what’s the difference between method and method in Laravel. It’s mentioned straight away in the laravel docs. While the input method retrieves values from the entire request payload (including the query string), the query method will only retrieve values from the query string: The important aspects and the real difference between…Continue Reading
Raw Queries in Laravel

Eloquent is the answer for all kinds of database operations in Laravel. As a matter of fact, which is a great solution for interacting with databases. But if we have complicated business logic/ complex MySQL queries, oftentimes we need to write raw queries in Laravel. A key concern about the usage of raw queries in…Continue Reading
Laravel Eloquent Select Column as Alias
Did you ever think about using an alias in the select columns while using Laravel Eloquent?. We cannot say it’s very Laravel specific, rather a MySql feature. Basically, when you join two or more tables in MySql, chances are very high that you will have the same column names multiple times in the result. This…Continue Reading
Laravel 8 Eloquent updateOrCreate() Example

In this post, we will explain about Laravel Eloquent updateOrCreate() method and its importance in our code. It’s very common that we have database operations in our application, like inserting customer details and updating that customer details in a later stage, or deleting customer details. For example, you have a function that is responsible for…Continue Reading
How to Set Scroll Bars to Always Display on Your Mac Os ?
Scroll bars help you to scroll up and down in any application. We cannot expect everything in the viewing pane, if you need you to need to have giant screens to accommodate that. Each and every operating system are evolving day by day, and they bring new features every day. You might have noticed that…Continue Reading
How to use __invoke() in PHP?
You might have seen function in famous frameworks or third-party libraries and wondering what this function does, you are in the right place. The magic method triggered when the object is being called as a function. The method can accept any number of parameters and is able to return mixed data types. To get triggered…Continue Reading
How to Search for File Types on Google ?
We all search Google for our queries. Normally, we search for phrases and expect results as web pages. Did you know that you can Google more than just standard web pages? Google can help you find books, documents, spreadsheets, presentations, Adobe files, and much more with the help of file type search. File types that…Continue Reading
English Transition Words
The transition words are used to link words, phrases, or sentences. They help the reader to progress from one idea to the next idea while reading a text. English transition words are very essential since they not only connect ideas but also can introduce a certain shift, contrast or opposition, emphasis or agreement, purpose, result…Continue Reading
What does Model::unguard() do in Laravel?

does temporarily disable the mass assignment protection of the model, so you can create records without worrying about the fillable. It’s not recommended to it for the users, but only for specific task such as seeding etc. For example, We have a table in our application. $table->double(‘name’); $table->boolean(‘status’)->default(false); And in the model protected $fillable =…Continue Reading
collect.js – A Laravel collection clone in JavaScript

Are you familiar with the collection in Laravel, then you will love this Collect.js, a Javascript counterpart of Laravel Collection. Collect.js offers an almost similar API to Laravel collections.
Three Wordle alternatives that you must try
Wordle, the famous word puzzle game took the world by storm. Recently, it got acquired by New York Times newspaper. Today we introduce 3 wordle alternates that you must try, and win.
How to win in SEO World using these Stop Words?
It is very important to know the usable stop words for a better SEO experience throughout your articles. We have curated a list of SEO stop words in this article. Just imagine you are targeting the keyword “Plumbers New York city”, there is no way you can insert this keyword in the article, otherwise you…Continue Reading
How to Export CSV file in Laravel Example

Exporting data to CSV is one of the many features most applications should have. Sometimes it would be a report for your marketing or finance team or a list of products in your inventory.
How to create Your Own Custom Log File in Laravel
Laravel is a well-known PHP framework for web artisans. In today’s tutorial, we will discuss how to create our own custom log file in Laravel. Logs are a very important part of an application as it records user journey in simple text files, so the administrator can look into these files if there is any…Continue Reading
Laravel db raw and whereRaw() where clause example

Laravel Eloquent provides endless methods to query your database and make good collections. But if you need to have normal MySQL expression in Laravel eloquent, such as replace white spaces from a field when using the where condition. This will help to push some of the limits that are with the Eloquent in Laravel. You…Continue Reading
How to change the background color of PDF in Adobe Reader?
Most of us had a really bad time while reading in the white background long time, whether it’s a pdf book or something else. However, we can set our PDF’s background as black or any other color, which will be good for the eyes at least. Adobe Reader has a feature to change the background…Continue Reading