Blog
Guides, tutorials and best practices from the Magento Company team.
Check if String starts with string
Mastering String Prefixes in PHP: How to Check if a String Starts With Another As developers, we spend a significant amount of time dealing with
Add AS-Expression to selected columns in getCollection()
Solving Collection Sorting Challenges: Adding AS Expressions Dynamically As a senior developer, I often encounter complex data manipulation
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 16777216 bytes)
Debugging PHP Fatal Error: Composer Memory Exhaustion on Large Systems As a senior developer, I’ve seen countless frustrating errors pop up during
How do I filter a collection by a YesNo type attribute?
Filtering Collections by Yes/No Attributes: A Comprehensive Guide As an experienced developer, I often encounter situations where we need to
Json giving 301 Moved Permanently
Understanding the HTTP Redirect Trap: Why a 301 Breaks Your AJAX Requests As senior developers, we spend a lot of time dealing with the nuances of
how to create print view with A4 page size and fix border per page
Mastering Print Layouts: Creating A4 Pages with Fixed Borders using HTML and CSS As developers, we often deal with the challenge of taking dynamic
Failed to restart mysql.service: Unit mysql.service is masked in Ubuntu 20.04 after an upgrade from 18.4
Title: Failed to Restart MySQL: Unit Masked Issue After Ubuntu Upgrade from 18.4 to 20.04 Introduction: Upgrading your operating system can bring about
How can I set option value selected in v-select in vue.js 2?
Mastering Selection: How to Set Option Values in v select with Vue.js 2 As developers working with component libraries like Vuetify,
Array into chunks and results by chunks in a new line with php
Mastering Array Chunks: How to Format Data Line by Line in PHP As developers, we frequently deal with raw data structures, and one common task is taking
Why isn't my nginx web server handling ttf fonts?
Why isn't my Nginx web server handling TTF fonts? A Deep Dive into CORS and MIME Types As a senior developer working with modern web stacks, we
Create Carbon date with string
Title: Create Carbon Date Object from String for Decremental Pagination Introduction Carbon is a great PHP library that provides powerful date
PHP client Web socket to send messages
This is a common point of confusion when dealing with WebSockets in PHP. While PHP is excellent for server side logic, implementing complex, stateful