[L6] Update even more areas of codebase using custom model validation logic

This commit is contained in:
Dane Everitt 2019-09-04 22:26:28 -07:00
parent c586157dc4
commit 0d6cf54314
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
23 changed files with 41 additions and 33 deletions

View file

@ -144,8 +144,10 @@ class User extends Validable implements
* Implement language verification by overriding Eloquence's gather
* rules function.
*/
protected static function gatherRules()
public static function getRules()
{
$rules = self::getRules();
$rules['language'][] = new In(array_keys((new self)->getAvailableLanguages()));
$rules['username'][] = new Username;