firefly-iii/app/models/AccountType.php
2014-12-20 15:00:53 +01:00

25 lines
521 B
PHP

<?php
use Illuminate\Database\Eloquent\Model as Eloquent;
use Watson\Validating\ValidatingTrait;
/**
* Class AccountType
*/
class AccountType extends Eloquent
{
use ValidatingTrait;
public static $rules
= [
'type' => ['required', 'between:1,50', 'alphabasic'],
'editable' => 'required|boolean',
];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function accounts()
{
return $this->hasMany('Account');
}
}