Using cursor-based pagination in Laravel + Eloquent
Updated: Feb 24, 2024
Pagination is an essential part of any application that deals with large datasets. It optimizes the performance of your app by loading a small chunk of data at a time. While traditional offset-based pagination is commonly used,......
Pandas DataFrame.value_counts() method: Explained with examples
Updated: Feb 22, 2024
Introduction Pandas is an open-source data manipulation and analysis library for Python, offering data structures and operations for manipulating numerical tables and time series. Among its versatile functions, DataFrame.value_counts()......
Constructor Property Promotion in PHP: Tutorial & Examples
Updated: Feb 22, 2024
Introduction One of the significant enhancements in PHP 8 is constructor property promotion. This feature aims to reduce boilerplate code associated with class property declaration and initialization in constructors. In traditional PHP......
Understanding mixed types in PHP (5 examples)
Updated: Feb 22, 2024
Overview Welcome to a comprehensive guide designed to help you understand mixed types in PHP. PHP, as a dynamically typed language, offers flexibility that can sometimes lead to confusion, especially when dealing with mixed types. In......
Union Types in PHP: A practical guide (5 examples)
Updated: Feb 22, 2024
Introduction In PHP, the concept of types is crucial for ensuring that variables and returns from functions behave as expected. PHP 8 introduced a remarkable feature that broadened the horizons for type declarations: Union Types. Union......
PHP: How to implement type checking in a function (PHP 8+)
Updated: Feb 22, 2024
Introduction In modern software development, ensuring the correctness and reliability of code is paramount. PHP, a server-side scripting language, has made significant strides toward enhancing type safety with the release of PHP 7 and......
Symfony + Doctrine: Implementing cursor-based pagination
Updated: Feb 22, 2024
In a digital world where data grows exponentially, efficient data retrieval becomes imperative for application performance and user experience. Pagination is a common strategy to chunk down the data into smaller, more manageable sets.......
Laravel + Eloquent: How to Group Data by Multiple Columns
Updated: Feb 22, 2024
Overview Laravel’s Eloquent ORM provides a fluent and convenient way to interact with your database. When it comes to retrieving and manipulating data, Eloquent offers various methods to achieve complex operations with minimal......
PHP: How to convert CSV data to HTML tables
Updated: Feb 22, 2024
Introduction In the realm of data representation, the shift from plain text formats like CSV (Comma Separated Values) to more user-friendly and visually appealing formats such as HTML tables is often a necessity. This tutorial will......
Using ‘never’ return type in PHP (PHP 8.1+)
Updated: Feb 20, 2024
Introduction PHP 8.1 introduced a new return type: never. This feature adds more expressiveness and robustness to PHP’s type system. The never return type indicates that a function or method will not return a value because it......
Nullable (Optional) Types in PHP: A practical guide (5 examples)
Updated: Feb 20, 2024
Overview In the evolving landscape of web development, PHP has remained a cornerstone for backend technologies. As applications grow in complexity, handling the absence of values or the concept of ‘null’ becomes......
Explore Attributes (Annotations) in Modern PHP (5 examples)
Updated: Feb 20, 2024
Introduction With the advent of PHP 8.x, the language introduced a game-changing feature known as Attributes, or previously known in other languages as Annotations. This significant addition brought a more native and sophisticated way......
Page 1 of 79 Next →