PHPackages                             deiucanta/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. deiucanta/smart

ActiveLibrary[Framework](/categories/framework)

deiucanta/smart
===============

Laravel Smart

49346[9 issues](https://github.com/deiucanta/laravel-smart/issues)[1 PRs](https://github.com/deiucanta/laravel-smart/pulls)PHP

Since Aug 29Pushed 7y ago5 watchersCompare

[ Source](https://github.com/deiucanta/laravel-smart)[ Packagist](https://packagist.org/packages/deiucanta/smart)[ RSS](/packages/deiucanta-smart/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (14)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)

```
