Blog

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

Laravel Company

Laravel Middleware / Route Groups

# Laravel Middleware vs. Route Groups: The Right Way to Secure Your Application As developers, we constantly seek the most efficient and elegant way to...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Blade - Advantage of @slot/@component vs @include?

# Laravel Blade: The Architectural Advantage of Components vs. Includes The evolution of Laravel Blade, particularly with the introduction of Components and...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Eloquent delete() not working

# Understanding Eloquent Deletion Quirks: Why `$model->delete()` Fails When You Expect It To As developers dive into the world of Laravel and Eloquent, you...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to change Yarn default packages directory?

# How to Rethink Dependency Structure: Moving Beyond the Default `node_modules` As developers, we often rely on convention. When we use package managers like...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel assets url

Title: Resolving Assets URL Issues in Laravel Applications: A Comprehensive Guide Body When developing your Laravel applications, managing assets like images,...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Passport vs JWT vs Oauth2 vs Auth0

# Confusion about API Auth Types in Laravel? Demystifying OAuth2, Passport, JWT, and Auth0 As a developer diving into building robust APIs with Laravel, it is...

2026-06-29 Stefan Bogdanescu
Laravel Company

Failed validation returns default error message even though custom messages supplied

# Failed Validation Returns Default Error Message Even Though Custom Messages Are Supplied: A Deep Dive into Laravel Error Handling As a senior developer...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel - Validation - Require if field is null

# Laravel Validation: Conditionally Requiring Fields Based on Other Data As a senior developer working with Laravel, one of the most common and crucial...

2026-06-29 Stefan Bogdanescu
Laravel Company

Cannot use object of type Illuminate\\Http\\JsonResponse as array in Laravel

# Fixing the Type Mismatch: Why You Can't Use `JsonResponse` as an Array in Laravel Data Handling As senior developers working within the Laravel ecosystem, we...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel eloquent model query for `not null`

# Laravel Eloquent: The Best Way to Query for `NOT NULL` Values I've been using Laravel for a project and using the Eloquent models to grab the model instances...

2026-06-29 Stefan Bogdanescu
Laravel Company

How can I solve "Connection could not be established with host smtp.gmail.com"?

# How to Solve "Connection could not be established with host smtp.gmail.com" on Staging Servers Dealing with connection errors when sending emails is one of...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Filament. with options and default value

# Mastering Dynamic Relationships in Filament: Handling Options and Default Values As developers building complex applications with Laravel and Filament, we...

2026-06-29 Stefan Bogdanescu