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
Laravel Artisan command for generating Request validation Class
The command can be used to generate new request validation request classes. You can input the name of the class to generate the class. The name will be used as the name of the class and the file. Follow the example below to generate a Request class in Laravel. php artisan make:request ProductPostRequest A new…Continue Reading
Bind vs Singleton in Laravel. Which one to use, and when?
In today’s tutorial, we are discussing bind() and singleton() methods in Laravel. In general, you might have encountered this a lot while you programming in Laravel based apps. We use in the event of reusable classes or objects ( the object is created each time when it is called). So each instance of the class…Continue Reading
Attribute Casting with Laravel
Laravel is well known MVC framework written in PHP programming language. Over the years, it became the next tool in your belt for a plethora of programmers. When we work with MVC, we have to deal with models and attributes as this is the layer that makes contact with our database. Oftentimes, we need to…Continue Reading
How to create and download a Zip file with PHP
Today we discuss how to create a zip file from a folder of images and download it from the browser. As result, we will have all the files in a folder archived to a zip file and downloaded to our computer. Important to realize we use built-in PHP class to achieve this. Class which allows…Continue Reading
RecordCast Review: A simple and free screen recorder for you to try
Being the best video screen capture software for PC, capture anything worth sharing on your screen with the all-in-one online screen recorder and video editor RecordCast. You can record videos, save them and come back later for editing. It is free to use. Moreover, Recordcast is video recording software that allows you to capture your computer screen…Continue Reading
DesignEvo Review: Create Fancy Logos Online
Paying a designer to create custom logos is not cheap. It can also be very expensive to pay for design software like PhotoShop or Sketch, and let alone learn how to use it. Moreover, if you’re more of a UI designer who struggles with logos, this can be a challenge. However, if you want to…Continue Reading
DesignCap Review: Create Beautiful Designs Online for Free
Are youLooking for the best free poster and flyer maker online?. If your answer is yes, continue reading this DesignCap review and learn how to create an amazing free poster and flyer using DesignCap. Have you ever tried to make a poster for your social media or personal channel?. If so, how did you manage…Continue Reading
How To Get HTTP Hostname In Laravel ?
In today’s tutorial, we discuss how to get the HTTP hostname in the Laravel project. The first thing to remember, we have helper that can be used anywhere in the Laravel projects such as blade templates, controllers, models, etc. So this function is equipped with two methods as shown below to get the HTTP hostname…Continue Reading
Copy to Clipboard from a Textbox using jQuery/JavaScript
In this tutorial, I will show you how to copy text to the clipboard on a button click using jQuery from a textbox. It’s very helpful for the users to click a button to copy everything in a textbox, instead of selecting and copying using the Mouse. So today’s tutorial, we will have a textbox…Continue Reading
How to Embed Someone’s Twitter Video in to a Webpage?
Twitter is one of the biggest social media that allows users to express their thoughts to the public. Oftentimes people use videos to engage with their friends, audience, customers, etc. Moreover, when sharing content everybody thinks about a retweet(terminology Twitter uses for sharing content inside the platform). What if you want to share the content…Continue Reading
The Complete Guide for FlexClip Video Maker
In today’s world, video making is a profession for many, so you need professional tools to create your stunning videos. In this article, we introduce FlexClip, a simple yet powerful video maker that creates marketing videos and family stories in minutes. Everybody watches YouTube videos, but did you ever thought about how these amazing videos…Continue Reading