Blog

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

Laravel Company

How to count value of foreach loop?

# Mastering Data Aggregation: How to Count Values Inside a Laravel `foreach` Loop As developers working with relational databases, one of the most common tasks...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to insert an object (Model type object) into Collection Object in Laravel at specific index number?

# How to Insert an Object into a Laravel Collection at a Specific Index Number Understanding how to manipulate data within Laravel's Eloquent Collections is...

2026-06-29 Stefan Bogdanescu
Laravel Company

getOriginal() is not working in laravel 8

# Decoding Eloquent: Why `getOriginal()` Fails with Accessors in Laravel 8+ As developers working with Eloquent, understanding how data is retrieved and...

2026-06-29 Stefan Bogdanescu
Laravel Company

What is the purpose of grant_type parameter in OAuth 2 Authentication

# Deconstructing OAuth 2: Understanding the Crucial Role of the `grant_type` Parameter As developers building modern, secure applications, understanding the...

2026-06-29 Stefan Bogdanescu
Laravel Company

"Use of undefined constant..." error in Laravel

# Solving the "Use of undefined constant" Error When Passing Data in Laravel Views Welcome to the world of Laravel development! It’s completely normal to run...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel's pivot table + Pivot table in general

# Unpacking the Mystery: Laravel Pivot Tables vs. General Database Pivots As a senior developer, I’ve seen countless developers grapple with the nuances of...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Model Dynamic Attribute

# Mastering Dynamic Attributes in Laravel Models: Accessing Data from JSON Columns As developers working with flexible data structures, the need to handle...

2026-06-29 Stefan Bogdanescu
Laravel Company

Visual Studio Code PHP Intelephense keeps showing a not existing error

Title: Resolving Intelephense PHP IDE Errors in Route Definitions Introduction Visual Studio Code is an increasingly popular code editor for different...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel - validate file size when PHP max upload size limit is exceeded

Title: Laravel - Validate File Size When PHP Max Upload Size Limit is Exceeded Introduction: In the world of web development, it's crucial to have control over...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 5: Best way to validate form with Javascript

# Laravel & JavaScript: The Best Way to Validate Forms Client-Side When building modern web applications with Laravel, you often face the challenge of...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Collection with groupby, count and sum

# Mastering Data Aggregation: Grouping, Counting, and Summing in Laravel Collections Struggling to apply complex data transformations using simple collection...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 10 with reverb connection failed

# Laravel Reverb Connection Failed in Production: Debugging WebSocket Failures Dealing with infrastructure issues when moving a Laravel application from a...

2026-06-29 Stefan Bogdanescu