Lift for Laravel: Enhancing Your Eloquent Models
Laravel Lift is a dynamic package designed to elevate the capabilities of Eloquent Models within the Laravel framework. Created by Wendell Adriel and other contributors, the package aims to simplify and enhance the functionality of models, making them more efficient and easier to work with.
Key Features
1. Easy-to-Read Models
Laravel Lift allows developers to define public properties in their Eloquent Models that directly align with the database table schema. This feature improves the readability of models and enhances the development experience in any integrated development environment (IDE).
2. Seamless Usage of PHP 8’s Attributes
The package intelligently makes use of PHP 8’s attributes, streamlining the model configuration process. It provides developers the flexibility to incorporate validation rules directly within models, contrasting the traditional method of using separate request classes. This integration simplifies the validation process, making it more intuitive and less cumbersome.
3. Dependence on Eloquent Events
Lift leverages Laravel’s Eloquent Events, ensuring that it integrates smoothly into existing projects without requiring substantial modifications. However, it is essential to note that this functionality relies on event-triggering being enabled.
Compatibility
Laravel Lift is compatible with PHP versions outlined on Packagist and supports Laravel versions 10.x and 11.x. This ensures that it can be integrated into a range of Laravel projects, both recent and long-standing.
Installation
To incorporate Laravel Lift into a project, developers simply need to execute the following composer command:
composer require wendelladriel/laravel-lift
Documentation and Support
For comprehensive guidance and documentation, users can visit the Laravel Lift Documentation. Here, developers will find detailed instructions and examples to help them make the most of Laravel Lift’s capabilities.
Contribution
Contributions to the Laravel Lift project are encouraged and welcomed. Interested developers can learn more about contributing by visiting the Contributing Guide.
With Laravel Lift, developers can propel their Eloquent Models to new heights, fostering a more organized, efficient, and straightforward model configuration process. Whether you are building a new application or enhancing an existing one, Laravel Lift provides the tools necessary to streamline model development and management.