PHPackages                             based/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. based/laravel-fluent

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

based/laravel-fluent
====================

Define model attributes the fluent way. Automatically cast properties to native types.

v0.0.7(3y ago)55713.5k↓50%26[5 issues](https://github.com/lepikhinb/laravel-fluent/issues)[2 PRs](https://github.com/lepikhinb/laravel-fluent/pulls)MITPHPPHP ^8.0

Since Aug 24Pushed 2y ago11 watchersCompare

[ Source](https://github.com/lepikhinb/laravel-fluent)[ Packagist](https://packagist.org/packages/based/laravel-fluent)[ RSS](/packages/based-laravel-fluent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (8)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:

```
