2014-06-29 15:12:33 -05:00
|
|
|
<?php
|
|
|
|
|
2014-09-04 01:31:45 -05:00
|
|
|
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-06-29 15:12: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()
|
|
|
|
{
|
2014-06-29 15:12:33 -05:00
|
|
|
return $this->hasMany('Account');
|
|
|
|
}
|
2015-01-01 23:16:49 -06:00
|
|
|
}
|