PHPackages                             adelaide/laravel-fluent - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. adelaide/laravel-fluent

ActiveLibrary[Database &amp; ORM](/categories/database)

adelaide/laravel-fluent
=======================

Fork of based/laravel-fluent. Define model attributes the fluent way. Automatically cast properties to native types.

v1.0.0(3y ago)033MITPHPPHP ^8.0

Since Oct 27Pushed 3y agoCompare

[ Source](https://github.com/adelaidegb/laravel-fluent)[ Packagist](https://packagist.org/packages/adelaide/laravel-fluent)[ GitHub Sponsors](https://github.com/lepikhinb)[ RSS](/packages/adelaide-laravel-fluent/feed)WikiDiscussions devel Synced 1mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

Laravel Fluent
==============

[](#laravel-fluent)

The package provides an expressive "fluent" way to define model attributes. It automatically builds casts at the runtime and adds a native autocompletion to the models' properties.

Introduction
------------

[](#introduction)

With `laravel-fluent`, you can define Model attributes as you would do with any other class. The values will be transformed to the corresponding types depending on the native types of the properties.

Before:

```
