mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
I have no idea what's happening!
This commit is contained in:
35
app/models/AccountMeta.php
Normal file
35
app/models/AccountMeta.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
use LaravelBook\Ardent\Ardent as Ardent;
|
||||
|
||||
/**
|
||||
* AccountMeta
|
||||
*
|
||||
* @property-read \Account $account
|
||||
*/
|
||||
class AccountMeta extends Ardent
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public static $rules
|
||||
= [
|
||||
'account_id' => 'numeric|required|exists:accounts,id',
|
||||
'name' => 'required|between:1,250',
|
||||
'data' => 'required'
|
||||
];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['account_id', 'name', 'date'];
|
||||
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function account()
|
||||
{
|
||||
return $this->belongsTo('Account');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user