Blog
Insights, guides, and best practices from the Laravel Company team.
Laravel - Remove elements having NULL value from multidimentional array
# Laravel: Removing NULL Elements from Multidimensional Arrays As senior developers, we frequently deal with complex, nested data structures when working with...
Laravel Eloquent groupBy() AND also return count of each group
Title: Efficiently Counting and Grouping Records by Browser Using Laravel Eloquent's groupBy() Method Introduction: In web development, it's common to deal...
Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted
Title: Troubleshooting SwiftMailer's Error Code 535: "Username and Password not accepted" Introduction: It is no secret that the process of sending emails can...
Cookie::forget not working laravel 5.1
# Decoding the Cookie Conundrum: Why `Cookie::forget` Fails in Laravel 5.1 Redirects As a senior developer, Iâve seen countless scenarios where seemingly...
Laravel API Authentication using Passport results in 401 (Unauthorized)
# Laravel API Authentication using Passport results in 401 (Unauthorized): Troubleshooting the Token Flow As a senior developer, I frequently encounter...
Lumen php artisan config:cache not found
# Solving the Lumen Configuration Caching Mystery: Why `config:cache` Fails As developers diving into the world of PHP frameworks, one of the most common...
Getting the JSON reponse from an API with Laravel
# Getting JSON Responses from APIs in Laravel: The Developer's Guide Working with external APIs is a fundamental skill for any modern web developer. You...
Deleting a folder with files in Laravel
# Deleting Folders with Files in Laravel: The Developerâs Guide When building applications on the Laravel framework, managing data isn't just about...
Database not configured laravel during migration
# Database Not Configured in Laravel Migrations: A Senior Developer's Troubleshooting Guide If you are new to a Laravel project or have just cloned a...
Eloquent - What is $fillable really for?
# Eloquent - What is `$fillable` really for? Moving Beyond Simple Mass Assignment When you start working with Eloquent in Laravel, especially when dealing with...
Laravel Update or Create Relationships
# Laravel: The Clean Way to Handle Update or Create Relationships As developers working with relational databases in Laravel, one of the most common and tricky...
Validate an array of integers
# Validating an Array of Integers Against a Database: Avoiding the `foreach` Loop in Laravel As developers working with modern PHP frameworks like Laravel, we...