mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-27 08:46:40 -06:00
30 lines
520 B
PHP
30 lines
520 B
PHP
<?php
|
|
|
|
|
|
namespace Firefly\Storage\Account;
|
|
|
|
class EloquentAccountRepository implements AccountRepositoryInterface
|
|
{
|
|
public $validator;
|
|
|
|
public function __construct()
|
|
{
|
|
}
|
|
|
|
public function count() {
|
|
return \Auth::user()->accounts()->count();
|
|
|
|
}
|
|
|
|
public function store() {
|
|
$account = new \Account;
|
|
$account->name = Input::get('name');
|
|
|
|
if($account->isValid()) {
|
|
|
|
}
|
|
$this->validator = $account->validator;
|
|
return false;
|
|
}
|
|
|
|
} |