Lastest Wiki


  1. Extending Laravel Eloquent with Custom Relations: A Complete Guide

    Laravel's Eloquent ORM is powerful, offering various relationship types (hasOne, belongsTo, etc.). However, sometimes your data isn't stored in a database, such as when you're dealing with APIs, static arrays, or non-traditional data sources. In these cases, you can extend Eloquent with custom relations.

    2024/11/24 php laravel eloquent extend

  2. Optimizing Go deployment using Docker with scratch

    Using the scratch image in Docker is a great way to create a super minimal image for your Go applications. The scratch image is an empty base image, meaning it contains absolutely nothing, not even basic utilities like bash. It’s ideal for Go applications that are statically compiled and don’t require any external dependencies.

    2024/10/21 go docker multi-stage scratch

  3. Go Applications using Docker with Multi-Stage Builds

    Multi-stage builds allow Docker to create optimized images by separating different phases of the build process into multiple steps (or stages). This method reduces the size of the final image and improves security by only including the necessary runtime components.

    2024/09/15 go docker multi-stage

  4. FrankenPHP: A modern app server for PHP, written in Go

    FrankenPHP is a modern application server for PHP apps, built on top of the Caddy web server. It has features such as worker mode, real-time capabilities, automatic HTTPS, HTTP/2, and HTTP/3 support.

    2023/12/08 php FrankenPHP

  5. PHP 8.3 typed class constants, a json_validate function, override attribute and more

    The PHP team has released PHP 8.3 today with typed class constants, a json_validate() function, dynamically fetching a class constant, and more

    2023/11/24 php

  6. Understanding Arithmetic Operator Precedence and Associativity

    Arithmetic operators are the backbone of mathematical operations in programming, enabling developers to perform calculations. To master these operators, it's essential to grasp not only their basic functionality but also how parentheses influence operator precedence and associativity.

    2023/09/22 Arithmetic

  7. Creating and Adding Custom Browser Extensions: A Step-by-Step Guide

    Creating a custom browser extension can be a rewarding project, as it allows you to add functionality to your web browser tailored to your needs. In this blog post, we'll walk through the process of creating and adding a custom browser extension for Google Chrome.

    2023/09/15 Extension

  8. Unlocking the Power of Full-Text Search in MySQL

    Chunking is a technique used in Laravel to process large datasets efficiently by breaking them into smaller segments or "chunks." Instead of retrieving and processing all records at once, you can fetch a specific number of records at a time and process them iteratively.

    2023/09/10 MySQL

  9. Laravel Limiting Chunk Collection: How to Chunk Results from a Custom Query

    Chunking is a technique used in Laravel to process large datasets efficiently by breaking them into smaller segments or "chunks." Instead of retrieving and processing all records at once, you can fetch a specific number of records at a time and process them iteratively.

    2023/09/09 Laravel PHP

  10. Embedding Struct in Go

    When you embed a struct within another struct, the fields and methods of the embedded struct become part of the outer struct. You can access these fields and methods directly from the outer struct.

    2023/09/06 Golang