Blog

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

Laravel Company

Laravel, get currently logged-in users

# Laravel: How to Get Currently Logged-In Users Efficiently When building any application that requires user interaction, one of the most fundamental tasks is...

2026-06-29 Stefan Bogdanescu
Laravel Company

Cannot use object of type stdClass as array in Laravel blade template

# Fixing the Blade Headache: Why You Can't Use `stdClass` as an Array in Laravel As developers working with the Laravel ecosystem, we frequently encounter...

2026-06-29 Stefan Bogdanescu
Laravel Company

CORS error, unable to solve, Why always getting Access-Control-Allow-Origin?

# CORS Error Solved: Why You Keep Seeing `Access-Control-Allow-Origin` Mismatches As a senior developer working with full-stack applications—especially those...

2026-06-29 Stefan Bogdanescu
Laravel Company

Elasticsearch-PHP needs curl or custom http handler

# Resolving the Elasticsearch-PHP Connection Error: cURL vs. Custom HTTP Handlers As a senior developer, I’ve seen countless deployment headaches involving...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to fix laravel/ui error to upgrade Laravel after upgrading PHP to 8.0

# How to Fix Laravel/UI Errors After Upgrading PHP to 8.0 Upgrading your PHP version is a crucial step for modernizing your application stack, but it often...

2026-06-29 Stefan Bogdanescu
Laravel Company

Using models relationships in Laravel Validation Rule 'Exists'

# Mastering Complex Relationships: Using Eloquent `whereHas` in Laravel Validation Rules As senior developers working with Laravel, we frequently encounter...

2026-06-29 Stefan Bogdanescu
Laravel Company

how to make a table scrollable with html + Tailwind CSS

Title: How to Make a Table Scrollable with HTML and Tailwind CSS Body: Having an overflowing table can often lead to issues in displaying all of its content...

2026-06-29 Stefan Bogdanescu
Laravel Company

Clicking Outlook safelink protection links in emails seems to be executing the code twice

# The Phantom Click: Why Outlook's SafeLink Protection Disrupts One-Time Token Links in Laravel Applications As a senior developer working with backend...

2026-06-29 Stefan Bogdanescu
Laravel Company

how can i search multiple keywords in laravel .?

# Mastering Multi-Keyword Searches in Laravel: Beyond Single `LIKE` Queries As a senior developer working with Laravel, you often encounter the need to build...

2026-06-29 Stefan Bogdanescu
Laravel Company

laravel showing error when vite not loaded (how to start larvel just with php artisan serve)

# Laravel and Vite Integration: Solving the "Vite Not Loaded" Error When Using Artisan Serve As developers diving into the world of modern Laravel, one of the...

2026-06-29 Stefan Bogdanescu
Laravel Company

Call to a member function getName() on null

# Avoiding Null Pointers in Middleware: Troubleshooting `Call to a member function getName() on null` As senior developers building complex applications with...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel: how to insert data with foreign key

# Laravel: How to Insert Data with Foreign Keys – A Complete Guide As a senior developer, I frequently encounter situations where setting up database...

2026-06-29 Stefan Bogdanescu