![data_forget Helper for Laravel](https://laravelsage.com/storage/media/25/conversions/data_forget-helper-responsive.jpg)
data_forget Helper for Laravel
Since Laravel version 10.15, there is a new utility function called data_forget that allows you to remove keys from an array or object using a "dot" notation.
3 min read
Tags:
If you're a developer working on Laravel projects, you know how important it is to optimize your application for performance and security. That's where Enlightn comes in. This powerful tool is designed specifically for Laravel developers looking to enhance their projects with advanced performance optimization features.
In this article, we'll explore the various ways in which Enlightn can help boost your Laravel applications. Additionally, Enlightn covers you from query optimizations and performance tuning to security features like scanning for dependency vulnerabilities and preventing SQL injection.
In addition to providing developers with valuable insights into their application's performance, security, and maintainability, Enlightn is an open-source Laravel package. As a result, you can identify and fix issues that may slow down your application, compromise security, or bloat up your codebase.
You can do the following with Enlightn:
Improve Performance: Enlightn performs various checks to identify performance bottlenecks, such as slow database queries and inefficient code, and provides recommendations on how to improve performance.
Enhance Security: Enlightn scans your application for security vulnerabilities and makes suggestions for enhancing its security, helping you adhere to best practices.
Ensure Code Quality: Enlightn checks your codebase for maintainability and adherence to coding standards, which can help prevent future issues.
Customizable Checks: You can easily customize checks to suit your project's needs by adding or modifying them.
Now that we are about to use Enlightn in your Laravel project, let's walk through the installation process:
Laravel (Laravel 7 or higher is recommended)
Composer installed on your system
Open your terminal and navigate to the root directory of your Laravel project, then run the following command:
composer require enlightn/enlightn
After installing the package, you'll need to publish its configuration file. Run the following command:
php artisan vendor:publish --tag=enlightn-config
The enlightn.php configuration file will be created in your Laravel project's config directory. You can modify this file to customize Enlightn's behavior.
Using the following Artisan command, you can now run Enlightn checks on your Laravel application after installing and configuring Enlightn:
php artisan enlightn
The Enlightn team will analyze your application, and as a result, provide you with a detailed report containing recommendations for performance improvements, security vulnerabilities, and code quality enhancements.
Enlightn's report appears in your terminal, presenting a summary of the checks performed, detailed information about any problems found, and suggestions for resolution.
In conclusion, incorporating Enlightn into your Laravel workflow provides access to invaluable tools tailored for optimizing performance. Furthermore, it enhances security in the framework. By doing so, you can stay one step ahead by proactively addressing potential issues before they become major problems.
With these powerful features at hand,
you'll have peace of mind knowing that
your Laravel projects are running efficiently
and securely—thanks to Enlightn
You’ll find installation instructions and full documentation on Enlightn
Full-stack developer with a knack for Merging creativity with technical expertise for standout solutions.
Since Laravel version 10.15, there is a new utility function called data_forget that allows you to remove keys from an array or object using a "dot" notation.
The ChatGPT Laravel API Package Generator package for Laravel generates smart API mocks in Laravel using ChatGPT prompts:
You can make your Laravel app multi-tenant using the Tenancy for Laravel Tenant package. This tenancy package lets you make any Laravel application multi-tenant without rewriting it.
Are you ready to take your Laravel skills to the next level and build extraordinary applications? Look no further! In this blog post, we will unveil a treasure trove of top packages that will revolutionize your development process.
The Livewire Tables package brings dynamic tables for models to Laravel Livewire. These are some of the features which you will get out of the box:
The MJML PHP package by Spatie can help you create email templates more easily. But there is a catch. It can be difficult to craft visually appealing and functional email templates that work across a variety of email clients.
Subscribe for 20+ new Laravel tutorials every week
You can unsubscribe at any time. You'll also get -20% off my courses!