Some more code to facilitate creating your very first account.

This commit is contained in:
Sander Dorigo
2014-06-30 15:46:12 +02:00
parent b216c1e16b
commit 67ef8f6be6
10 changed files with 200 additions and 8 deletions

View File

@@ -1,9 +1,14 @@
<?php
class Account extends Eloquent
class Account extends Elegant
{
public static $rules
= [
'name' => 'required|between:100,100',
];
public function accountType()
{
return $this->belongsTo('AccountType');