Laravel

Laravel dd() vs dump() vs var_dump() vs print_r() with…

To debug in PHP we use var_dump(), print_r() methos. Laravel provides a function to debug is called dd(). In this article, we are going...
Md Obydullah
53 sec read

Laravel Ban, Suspend or Block and Unban Auth User

Hi artisans, sometimes we need to ban users from our application. It’s an important feature. Laravel auth provides many functionalities. Unfortunately, they don’t provide...
Md Obydullah
2 min read

How to Truncate String in Laravel

In this short article, I’m going to share how to truncate string in Laravel. Laravel 7 offers a more object-oriented, fluent string manipulation library...
Md Obydullah
54 sec read

Laravel Generate Temporary URLs of AWS S3 Files

Sometimes, we want to share a file with someone for a limited time. We can easily do it in Laravel. In this article, I’m...
Md Obydullah
32 sec read

Debug Laravel Application with Laravel Debugbar

In this article, I’m going to share how to debug Laravel application with laravel-debugbar. This is a package to integrate PHP Debug Bar with Laravel. It...
Md Obydullah
1 min read

How to Register Eloquent Global Scope in Laravel

Global scopes allow you to add constraints to all queries for a given model. Laravel’s own soft delete functionality utilizes global scopes to only...
Md Obydullah
1 min read

Laravel Strong Password Validation

In this article, we are going to learn how to set strong password validation rule in Laravel. Let’s get started: Table of Contents Make...
Md Obydullah
1 min read

How to Rate Limit Route Requests in Laravel

According to Wikipedia, In computer networks, rate limiting is used to control the rate of requests sent or received by a network interface controller...
Md Obydullah
37 sec read

Generate Barcode in Laravel

A barcode or bar code is a method of representing data in a visual, machine-readable form. In this article, we’re going to generate barcode in Laravel....
Md Obydullah
1 min read

Laravel Auto Complete Search Using Typeahead

hi artisans, today I’m going to show you how to make an auto-complete search using typeahead.js. Typeahead.js is a flexible JavaScript library that provides...
Md Obydullah
1 min read

Laravel Generate PDF and Attach to Email

Hello artisans, in this article I’m going to share how to generate PDF and attach it to the email. I’m testing on Laravel 8.9.0....
Md Obydullah
1 min read

Use Model Events in Laravel 8.x & Upper

Hi artisans, today I’m going to share how to use model events in Laravel. I’m testing on Laravel 8.9.0. Let’s get started: Table of...
Md Obydullah
1 min read

How to Create Signature Pad in Laravel

Hi artisan, today I’m going to create signature pad in Laravel. I’m testing on Laravel 8. Let’s get started: Table of Contents Create Controller...
Md Obydullah
2 min read

Laravel Get Last N Days Records

Hi artisan, sometimes we need to get 7, 15 or 30 days of data from the database. In this short article, I’m going to...
Md Obydullah
22 sec read

How to Use SweetAlert2 with AJAX in Laravel 8.x…

In this article, I am going to share how to use SweetAlert2 in Laravel 8.x and Upper with AJAX. Let’s start. Table of Contents...
Md Obydullah
2 min read

Laravel Eloquent One to Many Relationship Tutorial with Example

A one-to-many relationship is used to define relationships where a single model owns any amount of other models. For example, a blog post may...
Md Obydullah
1 min read

Laravel Clear Cache, View, Routes and Config

Sometimes after route, creating view page or after installing new package, some features don’t work properly. Caching is responsible for these types of issues....
Md Obydullah
37 sec read

Secure Rest API with JWT Authentication in Laravel 8x

SON Web Tokens are an open, industry-standard RFC 7519 method for representing claims securely between two parties. In this article, I’m going to show how to...
Md Obydullah
2 min read