firefly-iii/app/models/AccountType.php

26 lines
522 B
PHP
Raw Normal View History

<?php
use Illuminate\Database\Eloquent\Model as Eloquent;
2014-12-06 05:12:55 -06:00
use Watson\Validating\ValidatingTrait;
2014-12-13 14:59:02 -06:00
/**
* Class AccountType
*/
2014-07-09 06:19:30 -05:00
class AccountType extends Eloquent
{
2014-12-06 05:12:55 -06:00
use ValidatingTrait;
2014-08-30 07:26:33 -05:00
public static $rules
2014-11-18 02:47:50 -06:00
= [
'type' => ['required', 'between:1,50', 'alphabasic'],
'editable' => 'required|boolean',
2014-08-30 07:26:33 -05:00
];
2014-08-10 11:22:42 -05:00
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
2014-07-09 06:19:30 -05:00
public function accounts()
{
return $this->hasMany('Account');
}
2015-01-01 23:16:49 -06:00
}