Blog
Insights, guides, and best practices from the Laravel Company team.
What is the Laravel way to check if the POST Request has a field left empty?
# What is the Laravel Way to Check if a POST Request Field Has Left Empty? Mastering Optional Array Inputs As senior developers, we often encounter scenarios...
Laravel + Vite + Sail over HTTPS. Possible?
# Laravel + Vite + Sail over HTTPS: The Reality of Docker Networking As a senior developer, I often encounter situations where a seemingly simple configuration...
- configuration.output.path: The provided value "public" is not an absolute path! with Webpack
# Debugging Webpack/Laravel Mix Path Errors: Solving "is not an absolute path!" As a senior developer working with front-end asset compilation in the Laravel...
Laravel, what can each() function do?
# Laravel, what can `each()` do? A Deep Dive into Iteration As a senior developer working within the Laravel ecosystem, we often deal with collections of...
How to create .json file and write into that file with data using PHP/Laravel
# How to Create and Write Data to a JSON File using PHP/Laravel As developers, we often deal with the need to persist data in various formats. While relational...
Attempt to read property "name" on null
Title: Displaying Category Name in Your Laravel Application Category Model Code: class Category extends Model { use HasFactory; protected $fillable=...
Laravel 8 - Route cannot find controllers: Target class [Auth\LoginController] does not exist
# Laravel 8 Error Solved: Why Route Cannot Find Controllers (Target Class Does Not Exist) As developers, we all encounter frustrating errors during the...
How to assign Middleware to Routes in Laravel (better way)?
# How to Assign Middleware to Routes in Laravel (The Best Way) As a senior developer working with the Laravel ecosystem, I often see developers grappling with...
SQLSTATE[23000]: Integrity constraint violation: 4025 CONSTRAINT
# Decoding SQLSTATE[23000]: Fixing Integrity Constraint Violations in Laravel Data Insertion As a senior developer working with the Laravel ecosystem, we...
Change PHP version used by Composer on Windows
# Change PHP Version Used by Composer on Windows: A Developer's Guide Dealing with multiple PHP versions on a single system, especially in environments like...
Laravel Eloquent how to get the second or third record?
# Laravel Eloquent: How to Get the Second or Third Record from a Relationship As developers working with relational data in Laravel, one of the most common...
Laravel Eloquent: is SQL injection prevention done automatically?
# Laravel Eloquent: Is SQL Injection Prevention Done Automatically? As a senior developer working with the Laravel ecosystem, security is paramount. When...