mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Some more code to facilitate creating your very first account.
This commit is contained in:
@@ -6,6 +6,9 @@ namespace Firefly\Storage\Account;
|
||||
|
||||
interface AccountRepositoryInterface
|
||||
{
|
||||
|
||||
public function count();
|
||||
|
||||
public function store();
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user