Laravel

Phone Number Validation in Laravel

In this article, I’m going to show how to validate mobile number in Laravel. Let’s get started: Table of Contents Ways of Validation Example...
Md Obydullah
1 min read

Route Model Implicit and Explicit Binding in Laravel

Laravel provides a mechanism to inject a model instance into your routes. It is called Route model binding. It’s a new feature. I’m testing...
Md Obydullah
1 min read

Notify User to Ignore Common Passwords in Laravel

Sometimes users choose a common password like “123456“, “abcde” etc. as their password. In this article, I’m going to share how to ignore the...
Md Obydullah
44 sec read

Laravel Redirect Back to Previous Page After Login

In this article, I’m going to share to how redirect back to the previous page after login. Let’s see some solutions: Table of Contents...
Md Obydullah
27 sec read

How to Limit Login Attempts in Laravel

In this article, I’m going to show how to set limit login attempts. If user tries to log in more than 5 times per minute, they will get...
Md Obydullah
31 sec read

Laravel Eloquent HasMany Recursive Relationship with Subitems

Today I’m going to show how to view items and deep level sub-items. Let’s get started: Table of Contents Database Migration Eloquent Model and...
Md Obydullah
1 min read

Get User Geographical Location in Laravel

In this short article, we’re going to learn how to get user location in Laravel. Let’s get started: Table of Contents Install Package Publish...
Md Obydullah
57 sec read

Create Your Own Blade Directive in Laravel

Laravel has many built-in directives such as @section, @json, @parent etc. In this article we’re going to make our own custom directives. Let’s get...
Md Obydullah
1 min read

Getting Started with Laravel Livewire

Today we’ll learn about Livewire. Let’s get stated: Table of Contents What is Livewire? Install Livewire Create a Component Use Component in Blade What...
Md Obydullah
1 min read

Solve: Laravel env() Variable Always Returns Null Value

The problem mainly occurs at the time of moving our project one server to another server. I’m writing about some possible solutions. Solution 1...
Md Obydullah
31 sec read

Implement Password Expiration & Force Reset in Laravel

Today I’m going to share how to implement password expiration and force reset password in Laravel. I’m testing on Laravel 7.15. Let’s get started:...
Md Obydullah
4 min read

Convert Array to Collection with Pagination in Laravel

Today we’ll learn how to convert array to collection with pagination in Laravel. Let’s get started: Table of Contents Create Support File Make Test...
Md Obydullah
1 min read

Create Your Own Laravel Package in 10 Minutes

In this article, I’m going to create a simple Laravel package. I’m testing in Laravel 7.13. So, let’s get started: Table of Contents Create...
Md Obydullah
1 min read

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