Laravel

How to Use Laravel 7 New Blade Components Feature

According to Laravel, “components and slots provide similar benefits to sections and layouts; however, some may find the mental model of components and slots...
Md Obydullah
1 min read

Integrate Google Firebase in Laravel

Firebase is a Backend-as-a-Service — BaaS — that started as a YC11 startup and grew up into a next-generation app-development platform on Google Cloud Platform....
Md Obydullah
1 min read

Laravel Order by Relationship Column with Example

In this short article, I’m going to share some order by relationships in Laravel. orderBy Use orderBy function to get record in ascending order:...
Md Obydullah
31 sec read

Laravel Upload Multiple Images and Files with Validation

In this article, I’m going to show how to upload multiple images and files with validation. I’m testing in Laravel 7. Let’s get started:...
Md Obydullah
2 min read

Laravel Check if Variable Exist in Blade (View) Directive

In this short article, I’m going to share some ways to check if variable exist in the blade file. Let’s see: Table of Contents...
Md Obydullah
42 sec read

How to Load Gravatar Image in Laravel

Today, I’m going to let you know how to load the gravatar image in Laravel. We’re going to use creativeorange/gravatar package. Table of Contents...
Md Obydullah
54 sec read

Custom Date Format Validation in Laravel

In this article, I’m going to share how to validate the custom date format in Laravel. Laravel has some date validation rules. Let’s take...
Md Obydullah
31 sec read

Laravel Two Factor Authentication with Google Authenticator

Hello, today I’m going to share how to set up two-factor authentication with Google Authenticator in Laravel. I’m testing on Laravel 7.0. I assume...
Md Obydullah
7 min read

How to Use Query Scope in Laravel Eloquent

We know that Laravel eloquent queries are the best ones. Today I’m going to share how to use query scope in Laravel eloquent. Let’s...
Md Obydullah
37 sec read

Laravel Remove Empty Spaces From Input Requests

In this article, we’re going to learn how to remove/trim empty and whitespace from all input requests in Laravel. Table of Contents Create Middleware...
Md Obydullah
29 sec read

How to Use Default HTTP Client in Laravel 7+

Good news…! Laravel 7 has a new HTTP client. It uses guzzlehttp/guzzle dependency & Laravel 7 automatically include this package. Table of Contents Basic Usage...
Md Obydullah
50 sec read

Understanding Fallback Route in Laravel with Example

Using the Route::fallback method, we may define a route that will be executed when no other route matches the incoming request. We need to add the...
Md Obydullah
24 sec read

Laravel Block IP Addresses from Accessing Website

In this article, we’re going to learn how to block IP address from accessing the Laravel application. Let’s get started: Table of Contents Create...
Md Obydullah
49 sec read

Disallow Multiple Logins Of Same User in Laravel

In this article, I’m going to show how to prevent multiple logins of the same credentials in Laravel. I’m testing on Laravel 7. This...
Md Obydullah
2 min read

How to Generate XML Sitemap Without Using Package

In this article, I’m going to share how to create an XML sitemap manually. Let’s assume that we have a model named Article for...
Md Obydullah
58 sec read

How to Create, Extract Zip and Delete Files or…

In this article, I’m going to share an easy method to zip & unzip in Laravel. I’m testing in Laravel 6.2. Let’s get started:...
Md Obydullah
1 min read

How to Determine User Online Status & Last Seen…

in Laravel, we can easily determine the user is online or not. In this article, we will learn about how to detect a user...
Md Obydullah
3 min read

How to Create & Use Traits in Laravel

Today we’ll learn about Traits. Let’s get started: Table of Contents What are Traits? Create a Trait Connect Trait to Model Use Trait in...
Md Obydullah
1 min read