Laravel

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

How to Disable New User Registration in Laravel

In this short article, I would like to share how to disable new user registration in Laravel. Let’s see the way: For New Versions...
Md Obydullah
29 sec read

Soft Delete & Force Delete Example in Laravel

In this tutorial, we’re going to learn how soft delete works in Laravel. When models are soft deleted, they are not actually removed from...
Md Obydullah
1 min read

How to Implement Authorization using Gates in Laravel 6

In this article, I’m going to share how to implement authorization using gates in Laravel 6. Let’s start: Table of Contents Install Laravel and...
Md Obydullah
2 min read