PHPackages                             vleroy/smart - 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. [Framework](/categories/framework)
4. /
5. vleroy/smart

ActiveLibrary[Framework](/categories/framework)

vleroy/smart
============

Laravel Smart

v1.0.1(5y ago)05.4k↓36.7%2MITPHP

Since Aug 29Pushed 5y agoCompare

[ Source](https://github.com/vleroy/laravel-smart)[ Packagist](https://packagist.org/packages/vleroy/smart)[ RSS](/packages/vleroy-smart/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (6)Versions (17)Used By (0)

Laravel Smart
=============

[](#laravel-smart)

[![Laravel Smart Demo](https://camo.githubusercontent.com/0268bbba18a365e691cc191bd33a5d80be8eaadce1a1cd0fd8f2b577e953f1fc/68747470733a2f2f692e696d6775722e636f6d2f4d5446536d39622e676966)](https://camo.githubusercontent.com/0268bbba18a365e691cc191bd33a5d80be8eaadce1a1cd0fd8f2b577e953f1fc/68747470733a2f2f692e696d6775722e636f6d2f4d5446536d39622e676966)

**Do not use this package in production!**

1. This is a proof of concept. (update: this package is used successfully in an app that has 25 models)
2. The code is not unit tested. (update: thanks to @robsontenorio we have basic unit testing)
3. The API is not stable.

I release this alpha version to get feedback on the API and to make sure I'm not missing important use cases.

Also, I cannot build this alone! I'm more than happy to receive help from the community. Don't be shy!

- join the discussions (even if it's not your issue)
- improve the documentation (if you found something hard to understand, raise an issue, send a pull-request, etc)
- contribute with code (I will guide you as much as needed)

---

Idea
----

[](#idea)

If you define the fields in the model, you can get:

- **automatic migrations**
- automatic validation on `save()`
- grouped field definition (name, schema type, casting, fillable/guarded, validation rules, schema modifiers, schema indexes)

```
