Blog

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

Laravel Company

Laravel : How to add a key value into an object?

# Laravel: How to Dynamically Add Key-Value Pairs to Eloquent Models As a senior developer working with the Laravel ecosystem, you frequently deal with...

2026-06-29 Stefan Bogdanescu
Laravel Company

Auto size Excel column width

# Mastering Excel Exports: How to Auto-Size Columns in Laravel Excel As developers working with data migration and reporting tools, exporting data into formats...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel eloquent select first row of each group by

# Mastering Group Selection in Laravel Eloquent: Selecting the First Row Per Group As developers working with relational databases through an ORM like...

2026-06-29 Stefan Bogdanescu
Laravel Company

laravel ->count() vs ->get()->count()

Title: Understanding the Difference Between Laravel ->count() and ->get()->count() for Counting Rows in Queries Body: When it comes to working with large...

2026-06-29 Stefan Bogdanescu
Laravel Company

Why does my Laravel 11 project not use my exception handling?

# Why Does My Laravel 11 Project Not Use My Exception Handling? A Deep Dive into `$exceptions` As developers, we often rely on exception handling to provide a...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel generate models, views and controllers from database or migration script

# Reverse Engineering Laravel: Generating Models and Controllers from Your Database Schema As developers, we often face the challenge of reverse...

2026-06-29 Stefan Bogdanescu
Laravel Company

how to solve " SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO) "

# Decoding the Dreaded MySQL Error: How to Solve `SQLSTATE[HY000] [1045] Access denied` As a senior developer, I’ve seen countless frustrating errors pop up...

2026-06-29 Stefan Bogdanescu
Laravel Company

How do i nicely decode Laravel failed jobs JSON

# How do I nicely decode Laravel failed jobs JSON? ## How should I decode and "prettify" Laravel's failed-jobs payload? When working with Laravel queues, a...

2026-06-29 Stefan Bogdanescu
Laravel Company

raw query join left with select to laravel 8 query

# Mastering Complex Joins: Converting Raw SQL to Laravel Query Builder As senior developers working with large datasets, we often find ourselves in a situation...

2026-06-29 Stefan Bogdanescu
Laravel Company

LARAVEL - Displaying images from the storage folder

# Laravel Image Display: How to Show Files from the Storage Folder Without Symbolic Links Welcome to the world of file management in Laravel! It’s a very...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 9 migrate: Object of class App\Enums\CaseSeverity could not be converted to string

# Solving the Laravel Migration Headache: Handling Enums in Database Defaults As developers working with modern PHP frameworks like Laravel, we often leverage...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 5.1 - icon in the page title

# Fixing Favicons in Laravel: Why Your Icon Isn't Showing Up As a senior developer working with the Laravel ecosystem, I frequently encounter situations where...

2026-06-29 Stefan Bogdanescu