New Eloquent Relation Existence Methods in Laravel 11.37
Building a PSR-11 Compatible Dependency Injection Container with PHP 8.4 Lazy Objects; Symfony 7.2.2 released; and Building Your First Database-Driven Web App.
PHP
📚 PSR-1: Basic Coding Standard in PHP
Ever wondered why some PHP codebases are a joy to work with while others feel like a maze? A lot of it comes down to following consistent coding standards.
📚 Building a PSR-11 Compatible Dependency Injection Container with PHP 8.4 Lazy Objects
In the realm of modern PHP, the release of version 8.4 introduced a groundbreaking feature: Lazy Objects. These objects enable a new way to defer initialization until absolutely necessary, boosting performance and reducing resource usage.
📚 How to Optimize Large JSON Files for Use with ChatGPT API?
I am trying to use ChatGPT as the chatbot for my Magento 2 website, and I want to pass product data to it. To do this, I collected all the products and stored them in a JSON file, which I then read to embed the data in the systemRoleContent of the system role. However, the issue I am facing is that the JSON file is quite large.
📚 PHP for Beginners: Building Your First Database-Driven Web App
In this tutorial, we’ll build a simple To-Do List App using PHP and MySQL. By the end, you’ll have a working application where users can add, view, and delete tasks.
📚 Mastering PHP Reflection: A Comprehensive Guide for Developers in 2025
This comprehensive guide will demystify PHP reflection, providing insights, practical examples, and real-world applications that will elevate your programming skills.
📚 Building Multi-Container Applications: PHP, MariaDB and Nginx Reverse Proxy Architecture
Before diving into our practical example, let’s understand Docker’s core components and how they work together in a production environment.
📚 Unsafe Deserialization in PHP: How to Create Your Own Exploit
To understand how object injections work in PHP, it’s important to understand the mechanisms of serialization and deserialization.
Laravel
I’ve hand-picked some of the biggest stories at Laravel News in 2024. This year was massive, with our new Laravel Creator Spotlight series and huge announcements from Laravel like Laravel Cloud, Inertia.js 2.0, an official Laravel VS Code extension, and more!
📚 Weak Password Policies in Laravel: A Security Guide
This blog delves into the risks posed by poor password policies in Laravel applications and demonstrates how to enforce stronger security measures.
📚 Unlock Laravel Code Generation (Part 3): Automating Validation from Your Database Schema
In previous posts, we’ve explored using Laravel stubs to streamline code generation. In this installment, we’ll zoom in on a specific example: automatically creating validation rules for your models by extracting metadata from your database schema.
📚 Early View Data Preparation with Laravel View Creators
Laravel’s View Creators allow you to prepare data immediately after view instantiation, earlier than View Composers, making them perfect for setting up essential view data or optimizing performance.
📚 Managing Proxy Trust in Laravel Applications
When deploying Laravel applications behind load balancers or reverse proxies, proper configuration of the TrustProxies middleware ensures correct handling of client information and HTTPS detection.
📚 How to Build a Generic CRUD Controller in Laravel for Multiple Resources
In this post, I’ll guide you on creating a generic CRUD controller that allows you to handle existing and future CRUD operations in a single controller.
📚 Mastering Laravel Authentication with Passport: A Step-by-Step Guide
This guide walks you through the entire process of setting up Laravel Passport, from installation to securing and testing your API.
📚 How to Test for Equal JSON Columns in Laravel Models
This article will guide you on effectively comparing JSON columns in your Laravel application’s tests.
📚 Secure and Scalable Encoding Made Easy with Laravel Encoder: A Complete Tutorial
This tutorial will walk you through everything you need to know about the Laravel Encoder, from installation and basic usage to advanced configurations and Laravel integration.
📚 New Eloquent Relation Existence Methods in Laravel 11.37
Last week the Laravel team released v11.37, which includes new Eloquent relation methods, an option to ignore case with Str::is(), adding the Dumpable trait to a Uri instance, and more.
📚 Using AI to Manage Translations in Laravel
The Laravel community offers a growing number of packages that use AI models like OpenAI’s GPT and Anthropic’s Claude to simplify and enhance application localization.
📚 Best PHP, Laravel, and Symfony conferences to attend in 2025
Here’s a list of essential developer conferences 2025 focused on PHP and its key frameworks, including Laravel and Symfony. These events are ideal for staying updated, improving your skills, and connecting with the PHP community.
📚 Understanding the Laravel Request Lifecycle (Laravel 11)
In this blog post, we will look through step-by-step request lifecycle in Laravel, as seen in the diagram below, and explain how each component contributes to the process.
📚 Laravel’s 2024: Progress at Lightning Speed, But Are We Biting Off More Than We Can Chew?
From groundbreaking releases to exciting new tools, the Laravel team, led by Taylor Otwell, has been unstoppable. But as the saying goes, “With great power comes great responsibility.” With so much rapid progress, I can’t help but wonder: Are we biting off more than we can chew?
📚 Understanding the Difference Between Web and API Routes in Laravel
In this post, let’s dive into an explanation of routing.
Symfony
Symfony 7.2.2 has just been released. Here is the list of the most important changes since 7.2.1.
This blog post highlights the key accomplishments of the Symfony project in 2024. We are grateful for your continuous support, which enabled the Symfony project to achieve a remarkable year.
📚 A Week of Symfony #940 (30 December 2024 - 5 January 2025)
This week, Symfony 6.4.17, 7.1.10 and 7.2.2 maintenance versions were released. In addition, we published more information about the upcoming SymfonyOnline January 2025 conference.