Blog

Insights, guides, and best practices from the Laravel Company team.

Laravel Company

how to upgrade laravel 6 to 7

# The Road to Upgrade: How to Safely Migrate from Laravel 6 to Laravel 7 Upgrading a major framework version, like moving from Laravel 6 to Laravel 7, is...

2026-06-29 Stefan Bogdanescu
Laravel Company

Response::setContent(): Argument #1 ($content) must be of type ?string

# Debugging PayPal Integration Errors in Laravel: Solving `setContent(): Argument #1 ($content) must be of type ?string` As senior developers working with...

2026-06-29 Stefan Bogdanescu
Laravel Company

SQLSTATE[42S22]: Column not found: 1054 Unknown column created_at and updated_at column missing

# Decoding SQLSTATE[42S22]: Why Eloquent Demands `created_at` and `updated_at` As senior developers working with Laravel and Eloquent, we often encounter...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel get name of file

Title: Retrieving Filename from Uploaded File in Laravel Body: In Laravel, handling file uploads is quite straightforward thanks to the built-in functionality...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to retrieve all records by foreign key with Laravel

# How to Retrieve Related Records by Foreign Key in Laravel: A Deep Dive As developers working with relational databases via an ORM like Laravel Eloquent,...

2026-06-29 Stefan Bogdanescu
Laravel Company

what's the With() method in laravel?

# Demystifying Eloquent: What Exactly is the `with()` Method in Laravel? As a senior developer working with Laravel and Eloquent ORM, you will inevitably...

2026-06-29 Stefan Bogdanescu
Laravel Company

Connection could not be established with host smtp.mailtrap.io [Connection timed out #110] with right env

# Debugging SMTP Connection Timeouts with Mailtrap in Laravel As a senior developer working with email delivery systems, I frequently encounter frustrating...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel image intervention compression

# Mastering Image Compression in Laravel with Intervention Image As a senior developer working with file-heavy applications, optimizing asset delivery is...

2026-06-29 Stefan Bogdanescu
Laravel Company

BadMethodCallException Call to undefined method App\Models\User::hasAnyRole()

# Resolving `BadMethodCallException`: Mastering Role-Based Authorization with Laravel Permissions As senior developers working within the Laravel ecosystem, we...

2026-06-29 Stefan Bogdanescu
Laravel Company

Eloquent - Where Date >= date(now) and whereNull('date')

# Eloquent Date Queries: Solving the Paradox of `WHERE date >= X AND date IS NULL` As a senior developer working with Laravel and Eloquent, we frequently...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel showing code of index.php on home page

# Understanding the Laravel Index File Display Issue in Apache Environments As a senior developer, I frequently encounter deployment headaches where the web...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to select columns from joined tables: laravel eloquent

# How to Select Columns from Joined Tables: Mastering Eloquent Relationships When working with relational data in Laravel, one of the most common tasks is...

2026-06-29 Stefan Bogdanescu