Blog
Insights, guides, and best practices from the Laravel Company team.
How can we downgrade Laravel dependencies from php 8 to php 7.4
# How Can We Downgrade Laravel Dependencies from PHP 8 to PHP 7.4? A Guide for Developers Dealing with legacy projects that are tied to specific dependency...
Docker and laravel not clearing the cache
# Docker and Laravel: Why `php artisan optimize` Fails in Your Container As developers moving into containerized environments, we often encounter subtle yet...
Laravel how to validate if exists and belong to user
# Laravel: Validating Existence and Ownership – A Deep Dive As developers working with Laravel, one of the most common scenarios we encounter is needing to...
Laravel Dusk, how to destroy session data between tests
# Laravel Dusk: Mastering Session Isolation for Independent Tests When moving into end-to-end testing with tools like Laravel Dusk, developers often encounter...
Show List of User Names in List With Laravel
# Solving the "Undefined Variable" Mystery: Listing Users in Laravel Dealing with seemingly simple errors, especially when you've spent hours debugging, can be...
What is the difference between a json resource & resource collection? in Laravel
# Demystifying Laravel API Resources: JsonResource vs. ResourceCollection As developers building robust APIs with Laravel, we frequently rely on Eloquent...
Laravel Paginate usage with DB::raw query
# Laravel Pagination with `DB::raw()` Queries: A Developer's Guide When working with complex database queries that involve raw expressions or calculated...
Update .env value via Laravel
# Programmatically Updating Environment Variables in Laravel: Beyond the `.env` File As developers working with the Laravel ecosystem, we spend a significant...
Laravel, do..while loop loops infinitely?
# Laravel, do..while loop loops infinitely? Debugging Infinite Database Searches As a senior developer, I often encounter situations where seemingly simple...
Laravel Collection Return
# Mastering Laravel Collection Returns: Taming Pagination Metadata As a senior developer working with the Laravel ecosystem, you frequently encounter scenarios...
"No such file or directory" or "No such host is known" when running migrations
Title: "Understanding and Resolving 'No such file or directory' or 'No such host is known' Errors During Migration" In this comprehensive blog post, we will...
Laravel - Trying to get property 'name' of non-object (View: C:\xampp\htdocs\jairusreport\resources\views\layouts\header.blade.php)
# Laravel Session Nightmare: Solving the "Trying to get property 'name' of non-object" Error As a senior developer, I’ve seen countless bugs that seem...