Bitcoscript

Database & Eloquent ORM

9 articles in this category — All Articles

Soft Deletes in Eloquent
Database & Eloquent ORM

Soft Deletes in Eloquent

In this final article of our Database & Eloquent category, we'll walk through how to implement soft deletes, query soft-deleted records, and restore or permanently remove them when needed.

Read more
Accessors, Mutators, and Attribute Casting
Database & Eloquent ORM

Accessors, Mutators, and Attribute Casting

In this article, we'll walk through each of these features, showing how they let you keep formatting logic neatly organized directly within your models, instead of scattered throughout your controllers and views.

Read more
Eager Loading vs Lazy Loading
Database & Eloquent ORM

Eager Loading vs Lazy Loading

In this article, we'll explain the difference between lazy loading and eager loading, how the N+1 problem happens, and how to fix it using Eloquent's with() method.

Read more
Introduction to Eloquent ORM
Database & Eloquent ORM

Introduction to Eloquent ORM

In this article, we'll introduce Eloquent's core concepts — models, basic queries, and simple CRUD operations — giving you the foundation needed before we explore more advanced Eloquent features in later articles.

Read more
Configuring MySQL Database in Laravel
Database & Eloquent ORM

Configuring MySQL Database in Laravel

In this article, we'll walk through installing MySQL (if you haven't already), creating a database, configuring your .env file correctly, and troubleshooting the most common connection issues beginners run into.

Read more