Blog

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

Laravel Company

How to get all rows (soft deleted too) from a table in Laravel?

Title: Retrieving All Rows (Including Soft Deleted) from Tables in Laravel - A Comprehensive Guide Introduction: As a popular PHP framework, Laravel provides...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel collection sortBy not taking effect

# Mastering Laravel Collections: Why `flatten()` and `sortBy()` Fail When Combining Database Results As developers working with Eloquent and Laravel's powerful...

2026-06-29 Stefan Bogdanescu
Laravel Company

Unsupported operand types: string / int in Laravel

# Fixing "Unsupported operand types: string / int" in Your Laravel Application Dealing with unexpected type errors during calculations can be one of the most...

2026-06-29 Stefan Bogdanescu
Laravel Company

Can't Truncate Table Befor Seeding

# The Database Dilemma: Why You Can't Truncate Tables Before Seeding As developers working with relational databases, one of the most common pitfalls...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Eloquent - Merging two eloquent model results (not the collections)

# Mastering Data Merging in Laravel Eloquent: Merging Two Model Results Efficiently As senior developers working with large datasets in Laravel, we frequently...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel route with id and name

# Mastering Dynamic Routes in Laravel: Handling Complex Path Segments As developers working with Laravel, one of the most common hurdles we face is correctly...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 5 Validation - error class on form elements

# Mastering Form Errors: Applying CSS Classes Based on Laravel Validation As developers building dynamic web applications with Laravel, managing user feedback...

2026-06-29 Stefan Bogdanescu
Laravel Company

Creating and using classes in Laravel

# Mastering Object-Oriented Programming in Laravel: Creating and Using Classes Effectively As developers, moving from procedural scripting to Object-Oriented...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to write select query with subquery using laravel Eloquent Querybuilder?

# How to Write Complex Select Queries with Subqueries in Laravel Eloquent QueryBuilder As developers working with relational databases, we frequently encounter...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Passport - unable create key file

# Laravel Passport Key Generation Failure: Solving the Docker File Permission Nightmare Setting up complex authentication systems like Laravel Passport,...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel migration primary (or key) "Identifier name is too long"

# Solving the "Identifier Name is Too Long" Error in Laravel Migrations As developers working with relational databases through frameworks like Laravel, we...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 5 echo out session variable containing html in blade

Title: Displaying Session Variables Containing HTML in Blade Templates Effortlessly Body: Laravel is a popular PHP framework that offers a rich set of features...

2026-06-29 Stefan Bogdanescu