Blog

Thoughts on PHP, Laravel, AI, and software engineering.

JavaScript

Anonymous functions VS arrow functions in JavaScript

Learn the differences between anonymous functions and arrow functions

Laravel

Eloquent Performance: Faster LIKE searching

Learn how to LIKE operator could affect your seaching performance

Laravel

Eloquent Performance: Multiple counting using one single select

Learn how to use count different statues using one single select statement

Laravel

Eloquent Performance: Reusable relationships

Learn how to make your Eloquent queries run faster by using the reusable relationships

Laravel

Eloquent Performance: Fake relationships

Learn how to use fake relationships to create robust queries

Laravel

Eloquent Performance: Subqueries

Learn how to use subqueries

Laravel

Eloquent Performance: Eager-loading

Learn how to fix N+1 issues by using the eager-loading

Laravel

Eloquent Performance: Avoid SELECT *

Learn how to select only the needed columns to make your query runs faster

Laravel

Eloquent Performance Tips

A series of posts that teaches you how to optimize your Eloquent queries

PHP

PHP ternary operator, elvis operator, null coalescing operator, and null safe operator

Learn the differences between these four operators in PHP

PHP

Doubly-Linked List, Stacks and Queues in PHP

Learn how to use the doubly-linked-lists, stacks, and queue data structure in PHP

Elasticsearch

Introduction to Elasticsearch

Learn the basic of Elasticsearch