Blog
Insights, guides, and best practices from the Laravel Company team.
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...