
1 minute read
Make your Eloquent models IDE-friendly using Laravel Lift
Laravel Lift is a fantastic package that boosts your Eloquent Models in Laravel.
Created by Wendell Adriel, Lift lets you create public properties in Eloquent models that match your table schema. This makes them easier to read and work with in any IDE.
The package intelligently uses PHP 8’s attributes, and gives you complete freedom in setting up your models. For instance, you can put validation rules right into your models - a simple and easy-to-understand arrangement compared to a separate request class. Plus, all these settings are easily reachable through handy new methods.
With a focus on simplicity, Lift depends on Eloquent events to work. This means the package fits easily into your project, without needing any major changes (unless you’ve turned off event triggering).
Did you like this article? Then, keep learning:
- Discover the best PHP packages that might enhance your Laravel projects alongside Laravel Lift
- Boost your Laravel workflow with efficient error handling techniques
- Learn to generate Laravel Factories rapidly using ChatGPT, improving development speed with models
- Understand how Laravel works internally to better utilize packages like Laravel Lift
- Explore Laravel 11 upgrade for latest features and compatibility with packages like Laravel Lift
- Master Laravel's Eloquent queries to enhance your model interactions beyond Laravel Lift
- See how Laravel Prompts can help create artisan commands to interact better with your models
- Learn validation in Laravel, complementing Laravel Lift's model validation features
- Explore PHP 8.3's Override attribute, a core concept for Laravel Lift's PHP 8 attributes usage
- Stay updated with latest PHP features impacting Laravel development
0 comments