Blog

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

Laravel Company

why I can not run npm run dev successfully?

# Why I Cannot Run `npm run dev` Successfully: Debugging Webpack and Laravel Mix Errors As senior developers working within the Laravel ecosystem, we often...

2026-06-29 Stefan Bogdanescu
Laravel Company

Retrieving image stored in storage folder

# Retrieving Images Stored in Laravel's Storage Folder: A Developer's Guide As developers working with the Laravel framework, managing file storage is a...

2026-06-29 Stefan Bogdanescu
Laravel Company

laravel 8 return Connection to tcp://mail.infomaniak.com:465 Timed Out

# Solving the Laravel Mail Timeout Error: A Deep Dive into SMTP Connectivity Welcome to the world of Laravel! Setting up email functionality is a crucial first...

2026-06-29 Stefan Bogdanescu
Laravel Company

using Request::is() function with named Routes Laravel

# Mastering Route Checking in Laravel: The Pitfalls of `Request::is(route())` As developers working with Laravel, we often deal with the relationship between...

2026-06-29 Stefan Bogdanescu
Laravel Company

laravel Type error: Argument 1 passed to Illuminate\Database\Eloquent\Model::save() must be of the type array, object given

# Solving the Eloquent Save Error: Mastering Nested Model Updates in Laravel As senior developers working with the Laravel ecosystem, we frequently encounter...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 11 - This password does not use the Bcrypt algorithm

Title: Understanding Laravel's Password Hashing Algorithm with Bcrypt (Laravel 11) Body: Laravel is a popular PHP framework that includes powerful features for...

2026-06-29 Stefan Bogdanescu
Laravel Company

Add middleware to controller in __construct in Laravel

# Applying Middleware to Controllers in Laravel: The Right Way As a senior developer working with the Laravel ecosystem, you often deal with applying different...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 8 sanctum api "CSRF token mismatch" 419 error with next.js app

# Solving the Sanctum CSRF Mismatch: Debugging 419 Errors in Next.js Applications As a senior developer working with modern PHP frameworks like Laravel and...

2026-06-29 Stefan Bogdanescu
Laravel Company

try/catch PHP doesn't catch exceptions (laravel controller)

# Why `try/catch` Fails in Laravel Controllers: Understanding Validation vs. Application Exceptions As a senior developer working within the Laravel ecosystem,...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel lazy collection for huge data

# Mastering Memory: Using Laravel Lazy Collections for Huge Data Sets As a senior developer, I frequently encounter performance bottlenecks when dealing with...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel private variable shared between two methods in Controller

# How to Use Private Variables in Laravel Controllers: Sharing State Between Methods As developers working within the Laravel ecosystem, we frequently deal...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to use table without model in hasMany

# How to Use Relationships Without Models in Eloquent: A Deep Dive into Raw Table Access As developers working with Laravel and Eloquent, we constantly deal...

2026-06-29 Stefan Bogdanescu