MHMuhamad Hassaninmuhamadhhassan.me·Apr 13 · 8 min readPartial Password AuthenticationRecently, I switched to another bank, and after setting up the online banking credentials and trying to log in for the first time, I found a form similar to this one. The system requests characters 00
MHMuhamad Hassaninmuhamadhhassan.me·May 16, 2025 · 8 min readPHP Attributes and MetaprogrammingIntroduction Attributes were introduced in PHP 8 around four years ago. As outlined in the RFC, attributes provide a structured and syntactic way to add metadata to declarations such as classes, properties, functions, methods, parameters, and constan...00
MHMuhamad Hassaninmuhamadhhassan.me·Oct 22, 2024 · 6 min readPHP Generics in Laravel 11If you are a web applications builder with Laravel and happens to use PHPStan for static code analysis, you will start seeing new errors when you upgrade to Laravel 11.x. In a fresh Laravel install with PHPStan, the first time running ./vendor/bin/ph...00
MHMuhamad Hassaninmuhamadhhassan.me·Jun 3, 2023 · 5 min readCreating Refresh Tokens with Laravel SanctumLaravel Sanctum is a lightweight authentication package for SPA applications and APIs. It was released in 2020 and became available out of the box since Laravel 8. Unlike JWT self-contained tokens, Sanctum uses a reference token. What is a Reference ...01AP
MHMuhamad Hassaninmuhamadhhassan.me·May 20, 2023 · 2 min readUsing ULID in Laravel FrameworkIn a previous post, we talked about how ULID can be a better choice for primary keys in MySQL than UUIDs. In this tutorial, we will go over how to use ULID in Laravel Framework. ULID has been supported in Laravel since v9.30.1 and has received some i...00