Given #312, auto-discovery was actually proved useless, and thus it was removed, together with the files it had shown as useless.
Brings in changes from PRs #305 and #310, a new maintainer to try to help out and maybe some space for other fixes.
You can now use $model->buildUniqueExclusionRules() in your FormRequest::rules() for additional validation awesomeness.
HasManyThrough::localKeyThe issue is explained in #283. Thanks @paul-crashley :)
From this version on, the save() method will always fix the unique rules (include the model ID on them) before validating.
Marking this version as stable since I'm using it for some weeks on Laravel 5 and found no upgrade issue.
[new] Added support for multiple languages on standalone usage (#234, @Edilton)
[enh] Relationships were improved (untested, tho :disappointed:)
- hasManyThrough, morphToMany and morphedByMany were added (#232, @mklenk and @khaeransori)
- belongsTo had 'relation' argument included, and 'localKey' renamed to 'otherKey', as Eloquent's original
- belongsTo, morphOne and morphMany had 'localKey' argument included (#204, @gg4you and @MrAtiebatie)
[bug] custom rules using 'unique' now work (#231, #251 by @araines and @BrandonOCasey)
[bug] implicit table name won't break unique rules (#235, @lfbittencourt)
[bug] no object for validation messages won't cause errors (#225, @wemersonrv)
[bug] $relation is not ignored anymore on belongsTo() (#258, @samuel-cloete)
[bug] Fixed code that conflicted with new stuff on Laravel 4.2 (#211, #226, #221; @chriskonnertz, @mspivak, @thinksaydo)
• Improvements to work with Laravel 4.1 (#133 by @bexarcreative-daniel, #136 by @MrNomNom) • Finally fixing the logic of updateUniques, that got broken because of a failed command-line merge (#114 by @andrew13) • Ability to override makeValidator() to be able to customize the Validator object used (#122 by @claar) • CSRF token is now purged in basicPurgeFilters() (#117 by @vanadium23) • Doc fixes (#115 by @Stamy, #126 by @hisorange)
Since 2.3.0 Ardent only supports Laravel 4.1 and above, and thus the composer file needed to be updated to reflect that. If you need 4.0 support, go to 2.1.
validateUniques(), just like we have updateUniques() (#140 by @mouhsinelonly)Based on the awesome contributions of @nightowl77 and other developers in PR #86, this release introduces improvements to the handling of rules for unique fields.
This release also ships with a small bugfix by @VasayXTX (#97) and @borfast (#103).
Eloquent::fill() to hydrate model instead of relying on validation rules. Read f400245Ardent::throwOnFind boolean property to forcefully throw exceptions when models are not found (forcing usage of findOrFail)InvalidModelException, enabled by Ardent::throwOnValidateArdent::relationsData static attribute that makes it much easier to define relations, cleaning the clutter in models with many relationshipsArdent::throwOnFind boolean property to forcefully throw exceptions when models are not found (forcing usage of findOrFail)InvalidModelException, enabled by Ardent::throwOnValidateArdent::relationsData static attribute that makes it much easier to define relations, cleaning the clutter in models with many relationshipsEnables Ardent to be used outside of the main Laravel framework. Use Ardent::configureAsExternal() with the connection array as argument for that.
How can I help you explore Laravel packages today?