Valerio

Laravel Password Hashing With Salt

September 9, 2024 Recently we went deep into the Laravel authentication system for some improvements and to add Multi-Factor authentication. I discovered some interesting details on how Laravel password hashing works. ...

How to group array by date in PHP – Fast Tips

September 4, 2024 I use this technique to group the bug fixes array by date in the Inspector dashboard, and I thought it could be a good code snippet idea for others. I also wrote an implementation for Laravel blade te...

Laravel Redis Throttle Fine Tuning: Tutorial

September 2, 2024 Redis Throttle is a fantastic feature provided by the Redis facade in the Laravel framework. It’s a convenient way to limit the rate at which certain actions can be performed. Redis::throttle("ra...

NewRelic Alternative For Monitoring Laravel Octane

August 29, 2024 I recently had the opportunity to discuss the adoption of Inspector by a team of developers based in Brazil. At the time they were using NewRelic to monitor their applications, but found that it was n...

Create Histogram Charts With MySQL – Tutorial

August 26, 2024 To create a statistical query to build a histogram chart with MySQL, you can use the COUNT() function along with GROUP BY to count occurrences of values within a specified range or category created by...

PHP Attributes: how to use PHP Attributes and create custom attribute classes – Fast Tips

August 22, 2024 PHP attributes were introduced in PHP 8.0. This version marked a significant milestone for the language, bringing several new features and improvements, including the introduction of attributes for ad...

MySQL How To Duplicate A Table – Fast Tips

August 21, 2024 Recently I had to deal with some limitations of my database provider that doesn’t support table renaming. So I had to duplicate a table manually. The database of my SaaS platform is hosted on Planetsc...

[Resolved] Integrity constraint violation – Fast tips

August 17, 2024 If you are dealing with the error: "Integrity constraint violation: Cannot add or update a child row: a foreign key constraint fails", you are in the right article. Usually you encounter thi...

How to monitor Guzzle Http Client – PHP Fast tips

August 16, 2024 Guzzle is a popular PHP HTTP client that makes it easy to send HTTP requests and create web service libraries. The most popular PHP frameworks provides an internal Http Client service, and they are si...

How to Search in a PHP Associative Array – Fast tips

August 15, 2024 Associative arrays are a fundamental data structure in PHP, allowing developers to store key-value pairs. They are versatile and commonly used to represent structured data. Searching for specific elem...

1 2 3 4 5 6