firefly-iii/app/models/AccountMeta.php

32 lines
595 B
PHP
Raw Normal View History

2014-11-10 11:38:58 -06:00
<?php
use LaravelBook\Ardent\Ardent as Ardent;
2014-11-17 00:33:18 -06:00
2014-11-10 11:38:58 -06:00
/**
* AccountMeta
*
* @property-read \Account $account
*/
class AccountMeta extends Ardent
{
/**
* @var array
*/
public static $rules
2014-11-12 15:37:44 -06:00
= ['account_id' => 'numeric|required|exists:accounts,id', 'name' => 'required|between:1,250', 'data' => 'required'];
2014-11-10 11:38:58 -06:00
/**
* @var array
*/
protected $fillable = ['account_id', 'name', 'date'];
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function account()
{
return $this->belongsTo('Account');
}
}