Tagged articles
5 articles
Page 1 of 1
php Courses
php Courses
Nov 28, 2024 · Backend Development

Comparing PHP 8.4 Property Hooks with Laravel Eloquent Mutators

This article examines PHP 8.4's new Property Hooks feature, compares it with Laravel Eloquent's Mutators, provides implementation examples for both, and offers guidance on when to prefer each approach based on project requirements and performance considerations.

BackendEloquentLaravel
0 likes · 8 min read
Comparing PHP 8.4 Property Hooks with Laravel Eloquent Mutators
php Courses
php Courses
Feb 21, 2024 · Backend Development

Deep Dive into Laravel Accessors and Mutators

This article provides an in‑depth exploration of Laravel’s Eloquent Accessors and Mutators, explaining their purpose, demonstrating advanced usage with price conversion, encryption, hashing, and offering practical blog‑model examples such as title casing, excerpt generation, date formatting, slug creation, and email normalization to ensure data integrity.

AccessorsBackend DevelopmentEloquent
0 likes · 6 min read
Deep Dive into Laravel Accessors and Mutators