Valerio

@inspector

614 Points 2 Followers

44 Posts

0 Answers

CTO & founder at Inspector.dev

Valerio · 1 week ago

PHP opcode – Improve application performance without changing your code

The PHP opcode generated by the PHP engine is strongly influenced by the way you write your code. Not only in terms of the number of statements to accomplish a task. Clearly it matters a lot...

Valerio · 1 week ago

Laravel AI service with support for multiple LLMs

In this article I'll show you my implementation of a Laravel AI component that powers the integration between Inspector and LLMs providers. As many product owners today I'm experimenting a l...

Valerio · 3 weeks ago

PHP array_map for associative array – Fast Tips

If you are here you are probably already aware that the array_map function doesn't allow access to array keys in the callback. Having the key other than the value can be extremely useful dea...

Valerio · 3 weeks ago

Laravel custom helper functions – Fast Tips

Helper functions are quite popular among Laravel developers. They provide access to some clever algorithms ready to be used in your code using a single statement. Probably the most known hel...

Valerio · 1 month ago

How to enable/disable PHP native functions – php.ini Tutorial

In this article I want to give you the step by step procedure to enable or disable php native functions editing the “disable_functions” directive in the php.ini file. Sometimes the default P...

Valerio · 1 month ago

Logging Database Queries with Eloquent ORM and Laravel – Fast Tips

Having a more clear understanding of what your application really does during its execution is an increasing necessity. Logging the raw database queries generated by your preferred ORM is on...

Valerio · 1 month ago

Laravel Http Client Overview and Monitoring

Laravel HTTP client was introduced starting from version 10 of the framework, and then also made available in all previous versions. It stands out as a powerful tool for making HTTP requests...

Valerio · 1 month ago

Laravel Form Request and Data Validation Tutorial

In this article I will talk about Laravel Form Request to send data from your application frontend to the backend. In web applications, data is usually sent via HTML forms: the data entered...

Valerio · 1 month ago

Upload File in Laravel

You can upload file in Laravel using its beautiful unified API to interact with many different types of storage systems, from local disk to remote object storage like S3. As many other Larav...

Valerio · 1 month ago

Laravel Mailable Tutorial

Sending emails in Laravel requires the collaboration between three components: Laravel mailer, Laravel mailable classes, and the Mail facade. Each of the three deals with a different aspect...

Valerio · 2 months ago

Laravel Auth Routes Tutorial

Laravel auth routes is one of the essential features of the Laravel framework. Using middlewares you can implement different authentication strategies and attach them to different parts of y...

Valerio · 2 months ago

Laravel Livewire: What it is, and how to use it in your web app

Livewire is one of the most important projects in the Laravel ecosystem specifically targeted to frontend development. Livewire v3 has been recently released, so let’s explore what Livewire...
1

Valerio · 2 months ago

Laravel Password Hashing With Salt

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 hashi...

Valerio · 2 months ago

How to group array by date in PHP – Fast Tips

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 Larave...

Valerio · 2 months ago

Laravel Redis Throttle Fine Tuning: Tutorial

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::throttl...

Valerio · 2 months ago

NewRelic Alternative For Monitoring Laravel Octane

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 tha...

Valerio · 2 months ago

Create Histogram Charts With MySQL – Tutorial

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...

Valerio · 2 months ago

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

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 attribu...

Valerio · 2 months ago

MySQL How To Duplicate A Table – Fast Tips

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 o...

Valerio · 2 months ago

[Resolved] Integrity constraint violation – Fast tips

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 enc...

Valerio · 2 months ago

How to monitor Guzzle Http Client – PHP Fast tips

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 t...

Valerio · 3 months ago

How to Search in a PHP Associative Array – Fast tips

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 spe...

Valerio · 3 months ago

Why use declare(strict_types=1) in PHP – Fast tips

In this tutorial, we'll explore what declare(strict_types=1) means, why PHP developers should use it and why not, and provide examples to illustrate its importance. This setting comes becaus...

Valerio · 3 months ago

PHP Iterators for walking through data structures – FastTips

PHP Iterators are essential tools for efficiently traversing and manipulating data structures like arrays, objects, and more. They provide a clean and memory-efficient way to work with large...

Valerio · 1 year ago

New level of control for error notifications in Inspector

The latest product update includes some changes in the configuration of error notifications. Now you can configure error occurrences notification separately for each error group and not only...

Valerio · 1 year ago

Observability vs monitoring

In this article I would share my experience working in the monitoring industry by providing some insights for the following questions about observability and monitoring: Is observability th...

Valerio · 1 year ago

The Architecture of Inspector Machine Learning API

In this article I want to share with you the design of the early version for the upcoming Inspector Machine Learning API architecture. We will focus on how we want to utilize this new intern...

Valerio · 1 year ago

AWS SQS in a large scale application

In today's article, I'm going to show you how we use AWS SQS in our Laravel application, and how it helps us to manage 1.6 billion operations each month. In the image below you can see our t...
1

Valerio · 1 year ago

Custom Tooltip Directive in Vuejs 3: Tutorial

Custom directives in Vuejs 3 are one of those things where there is no compatibility with the previous version of the framework. Working on the new version of the Inspector frontend dashboar...
1

Valerio · 1 year ago

Why and how to create an Event Bus in Vuejs 3

Have you ever used an event bus in Vue 2 and don't know how to recreate it in Vue 3? Since I'm working on the 2.0 version of my product's UI (to be released in May) I'm publishing some techn...
1

Loading More Content