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

@@ -6,6 +6,9 @@ namespace Firefly\Storage\Account;
interface AccountRepositoryInterface
{
public function count();
public function store();
}

View File

@@ -5,6 +5,8 @@ namespace Firefly\Storage\Account;
class EloquentAccountRepository implements AccountRepositoryInterface
{
public $validator;
public function __construct()
{
}
@@ -14,4 +16,15 @@ class EloquentAccountRepository implements AccountRepositoryInterface
}
public function store() {
$account = new \Account;
$account->name = Input::get('name');
if($account->isValid()) {
}
$this->validator = $account->validator;
return false;
}
}