I have no idea what's happening!

This commit is contained in:
Sander Dorigo
2014-11-10 18:38:58 +01:00
parent 754336b3cf
commit a3f8841ec3
25 changed files with 358 additions and 244 deletions

View 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');
}
}