mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 11:20:39 -06:00
25 lines
521 B
PHP
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');
|
|
}
|
|
}
|