Blog

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

Laravel Company

Laravel - Remove elements having NULL value from multidimentional array

# Laravel: Removing NULL Elements from Multidimensional Arrays As senior developers, we frequently deal with complex, nested data structures when working with...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Eloquent groupBy() AND also return count of each group

Title: Efficiently Counting and Grouping Records by Browser Using Laravel Eloquent's groupBy() Method Introduction: In web development, it's common to deal...

2026-06-29 Stefan Bogdanescu
Laravel Company

Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted

Title: Troubleshooting SwiftMailer's Error Code 535: "Username and Password not accepted" Introduction: It is no secret that the process of sending emails can...

2026-06-29 Stefan Bogdanescu
Laravel Company

Cookie::forget not working laravel 5.1

# Decoding the Cookie Conundrum: Why `Cookie::forget` Fails in Laravel 5.1 Redirects As a senior developer, I’ve seen countless scenarios where seemingly...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel API Authentication using Passport results in 401 (Unauthorized)

# Laravel API Authentication using Passport results in 401 (Unauthorized): Troubleshooting the Token Flow As a senior developer, I frequently encounter...

2026-06-29 Stefan Bogdanescu
Laravel Company

Lumen php artisan config:cache not found

# Solving the Lumen Configuration Caching Mystery: Why `config:cache` Fails As developers diving into the world of PHP frameworks, one of the most common...

2026-06-29 Stefan Bogdanescu
Laravel Company

Getting the JSON reponse from an API with Laravel

# Getting JSON Responses from APIs in Laravel: The Developer's Guide Working with external APIs is a fundamental skill for any modern web developer. You...

2026-06-29 Stefan Bogdanescu
Laravel Company

Deleting a folder with files in Laravel

# Deleting Folders with Files in Laravel: The Developer’s Guide When building applications on the Laravel framework, managing data isn't just about...

2026-06-29 Stefan Bogdanescu
Laravel Company

Database not configured laravel during migration

# Database Not Configured in Laravel Migrations: A Senior Developer's Troubleshooting Guide If you are new to a Laravel project or have just cloned a...

2026-06-29 Stefan Bogdanescu
Laravel Company

Eloquent - What is $fillable really for?

# Eloquent - What is `$fillable` really for? Moving Beyond Simple Mass Assignment When you start working with Eloquent in Laravel, especially when dealing with...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Update or Create Relationships

# Laravel: The Clean Way to Handle Update or Create Relationships As developers working with relational databases in Laravel, one of the most common and tricky...

2026-06-29 Stefan Bogdanescu
Laravel Company

Validate an array of integers

# Validating an Array of Integers Against a Database: Avoiding the `foreach` Loop in Laravel As developers working with modern PHP frameworks like Laravel, we...

2026-06-29 Stefan Bogdanescu