Posts for Laravel

Deven
Deven wrote

Handling File Uploads with validation in Laravel

In this tutorial, you will learn how to handle file uploads with validation in Laravel. Almost all applications have to do with file upload of some sort: a profile picture, a document for KYC verification, a document containing a CV, etc. Hence, it is important to understand how to handle file uploads in Laravel. In […]

May 12, 2023 in Laravel & Tutorials
Deven
Deven wrote

Laravel 10 CRUD Example Tutorial for Beginners

In this article, we’ll show you how to create a Laravel CRUD application step by step. Learn about error handling, pagination, and best practices to improve your Laravel projects. Get ready to explore Laravel 10 CRUD features and boost your web development skills. For illustration consider the following application: Requirements Setup Laravel CRUD project Firstly, […]

May 1, 2023 in Laravel & Tutorials
Deven
Deven wrote

How to manage roles and permissions in Laravel

For a web application, it’s necessary to have and manage many different roles and permissions. They help us to define what are the responsibilities and capabilities of each of our employees. It’s important to define our user roles and assign responsibilities to each of our employees because they make our website more secure. In this […]

April 22, 2023 in Laravel & Tutorials
Deven
Deven wrote

How to use Many to Many relations in Laravel

Many to Many Relations is one of the eloquent relationships in Laravel. The main factor in many many relations is the to-join table which is called the pivot table. The pivot table has the ability to perform relations from one model to many models. In this article, you’re going to learn how to implement Many […]

April 22, 2023 in Laravel & Tutorials
Deven
Deven wrote

How to use the firstOrCreate() method in Laravel

The first() method in Laravel is used to match and find specific data from the database. It can return only one record at a time. On the other hand, we use the create() method to create new data in Laravel. But using the firstOrCreate() method we can do both tasks at a time. In this […]

April 22, 2023 in Laravel & Tutorials
Deven
Deven wrote

Learn how to Generate QR code in Laravel with example

A QR code is a type of barcode that can be read easily by a digital device that stores information as a series of pixels in a square-shaped grid. In this modern technological era, QR code is very essential. All modern technology provides QR code-generating process. Today we are going to learn, how to generate […]

March 16, 2023 in Laravel & Tutorials
Deven
Deven wrote

How to use Laravel Telescope

When we start to develop a web application, it is common for us to face bugs in our code. That can be a simple bug like a missing comma or a complex bug like wrong queries, path, etc. And we know that debugging can be very painful. But Laravel officially provides an effective bug assistant […]

March 14, 2023 in Laravel & Tutorials
Deven
Deven wrote

how to use orWhere() method in Laravel

All the Eloquent relationships in Laravel are defined with methods. So, we can call those methods to get a reference of the database relationship without performing a query and get access to specific models. The orWhere() method is one of them. In this tutorial, you are going to learn how to use the orWhere() method […]

March 12, 2023 in Laravel & Tutorials
Deven
Deven wrote

Laravel Eloquent relationships explained

Eloquent ORM is one of the most exciting and powerful built-in features in Laravel. Before we start we’ve to understand, what ORM means. ORM means object-relational mapper. It handles database operations by representing data as objects. Database records or as we better know them tables are often related to each other. Eloquent maintains these relationships […]

March 11, 2023 in Laravel & Tutorials
Deven
Deven wrote

How to use whereIn() method in Laravel

We manage data in a relational database management system through different SQL queries. The whereIn is also a SQL query. In this tutorial, you are going to learn how to use SQL whereIn query in Laravel. Let’s learn through examples. Suppose we have a customers table in our database. There are five columns in the […]

February 24, 2023 in Laravel & Tutorials
Deven
Deven wrote

How to use the updateOrCreate() method in Laravel

Generally, in Laravel, we use the create() method to create new data and the update() method to update our data into the database. But there is a way to use both methods at a time like when it needs to create new data it uses the create() method and to update the data it uses […]

February 14, 2023 in Laravel & Tutorials
Deven
Deven wrote

How to use groupBy() method in Laravel

The groupBy() method in Laravel returns the query results by grouping the data of a database table. Suppose we have multiple data of the same type or name in our database. We can get those specific types of data without any duplicate value by using the groupBy() method. In this tutorial, you are going to […]

February 11, 2023 in Laravel & Tutorials
Deven
Deven wrote

Pagination in Laravel 10 explained with examples

Laravel is one of the easiest and most efficient PHP frameworks. It follows MVC or model, view, and controller design pattern. It provides many exciting features for web development. Pagination is one of them. Laravel’s paginator uses Query builder and Eloquent ORM that provides suitable easy-to-use pagination. In this tutorial, you are going to learn […]

February 9, 2023 in Laravel & Tutorials
Deven
Deven wrote

A comprehensive Laravel 10 Cron Jobs Scheduling with example

Imagine that you have a subscription-based application built with Laravel, and you want to send daily emails to all users, I don’t think you really like doing it manually. Checking for new users to copy the email addresses and send emails to them it’s boring and not productive, right? sure,  And here comes the power […]

February 8, 2023 in Laravel & Tutorials
Deven
Deven wrote

Laravel eloquent polymorphic relationships explained

Eloquent ORM is one of the most exciting and powerful built-in features in Laravel. Before we start we’ve to understand, what ORM means. ORM means object-relational mapper. It handles database operations by representing data as objects. Database records or as we better know their tables are often related to each other. Eloquent maintains these relationships […]

January 26, 2023 in Laravel & Tutorials