Wiring boxes, consuming APIs, and testing form requests
Oct 4, 2023
auto_awesome
Discussion on Laravel 10.25 release, hiring for video content, Livewire track in Laravel Bootcamp, Wirebox for Livewire, Laracon EU tickets on sale, Consuming APIs in Laravel, experimental package Pail for tailing logs, managing user's browser sessions, Unfinalize package, Form Request Tester Package, User Monitoring Package, Github Contributions Generator, using wire:navigate with Fathom Analytics.
The Benfay User Monitoring Package allows you to track user visits, actions, logins, and logouts, enhancing account security and providing insights into user behavior in your Laravel application.
The Unfinalize package by Steve Baum offers a utility for removing 'final' keywords from classes and methods in vendor packages, allowing developers to modify vendor files to suit their needs.
Deep dives
Manage and Monitor User Activity with User Monitoring Package
The Benfay User Monitoring Package allows you to track user visits, actions, logins, and logouts. It provides a dashboard where you can see user activity, including IP, browser, and operating system information. The package also offers action monitoring by attaching an actionable trait to a model, allowing you to track user interactions with the model. Additionally, it supports authentication monitoring to track user logins and logouts. You can customize data retention and disable specific types of monitoring. Overall, the package helps you enhance account security and gain insights into user behavior in your Laravel application.
Unfinalize Package: Removing 'Final' Keywords from Classes and Methods
The Unfinalize package by Steve Baum provides an interesting utility for removing 'final' keywords from classes and methods in vendor packages. It leverages PHP CS Fixer to achieve this and offers a way to permanently remove the 'final' keywords. Although it's still in the proof of concept phase, the package can be useful for developers who want to modify vendor files to suit their needs. To use Unfinalize, you'll need to fork the PHP CS Fixer package and run the modifications using the provided code. It's worth noting that this approach requires taking full responsibility for any issues or consequences that may arise from modifying vendor packages.
Laravel Form Request Test of Package for Testing Form Requests
The Laravel Form Request Test of package provides a collection of helpers to streamline testing form requests in Laravel applications. It allows you to perform assertions on form requests, such as testing authorization, validation failure, specific validation errors, and validation messages. The package provides methods to assert passing validation, authorization, and validation data as well. It simplifies the process of testing form requests and ensures proper validation and authorization checks within your application. However, it's essential to strike a balance between testing validation rules and relying on Laravel's built-in validation mechanisms.
The GitHub Contributions Generator is a fun tool that generates an image of your GitHub contributions. You can choose your theme and enter your GitHub username to see an image representing your contributions over time. This image can be downloaded and used as a visual representation of your GitHub history. The code is open source and available on GitHub, allowing you to explore and customize the generator according to your preferences.