wendelladriel/laravel-lift

Take your Eloquent Models to the next level
57,939 701
Install
composer require wendelladriel/laravel-lift
Latest Version:v0.19.1
PHP:^8.2
Laravel:11 · 12 · 13
Older releases:9 · 10
License:MIT
Last Updated:Oct 16, 2026
Links: GitHub  ·  Packagist
Maintainer: wendell_adriel

[!WARNING] This is an experimental package!

Lift for Laravel

🏋️ Lift for Laravel

Take your Eloquent Models to the next level

Packagist PHP from Packagist Laravel versions GitHub Workflow Status (main) Documentation Total Downloads

Installation

You can install the package via composer:

composer require wendelladriel/laravel-lift

Usage

Add the Lift trait to models that should use typed public properties and Lift attributes:

use Illuminate\Database\Eloquent\Model;
use WendellAdriel\Lift\Attributes\Cast;
use WendellAdriel\Lift\Attributes\Fillable;
use WendellAdriel\Lift\Attributes\Rules;
use WendellAdriel\Lift\Lift;

final class Product extends Model
{
    use Lift;

    #[Fillable]
    #[Rules(['required', 'string', 'max:255'])]
    public string $name;

    #[Fillable]
    #[Cast('integer')]
    #[Rules(['required', 'integer', 'min:0'])]
    public int $stock;
}

Lift reads those attributes and applies the matching Eloquent configuration through model events. This keeps model behavior close to the property it describes while still using standard Eloquent models.

Access the full documentation here.

Changelog

Please see the changelog for more information on what has changed recently.

Contributing

Thank you for considering contributing to Lift! You can read the contribution guide here.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

Lift is open-sourced software licensed under the MIT license.

Related Packages

spajz/modval

Simple model validation for Laravel 4.

12 1
theriddleofenigma/laravel-model-validation

Effortless, self-contained validation for your Eloquent models.

13,967 33
korridor/laravel-model-validation-rules

A laravel validation rule that uses eloquent to validate if a model exists

274,013 29
neuecommerce/model-casts

Some handy Laravel Eloquent model casts.

21,938 0
taldres/laravel-immutable-attributes

Guard Eloquent model attributes against changes once a row exists: declare them...

3,371 0

Version History

Version Released PHP Laravel License
v0.19.1 ^8.2 ^11.0|^12.0|^13.0 MIT
v0.19.0 ^8.2 ^11.0|^12.0|^13.0 MIT
v0.18.0 ^8.2 ^11.0|^12.0|^13.0 MIT
v0.17.0 ^8.2 ^11.0 || ^12.0 MIT
v0.16.0 ^8.2 ^11.0 || ^12.0 MIT