Is now capable of updating transactions over the API.

This commit is contained in:
James Cole
2019-04-06 08:10:50 +02:00
parent b692cccdfb
commit c519b4d0df
36 changed files with 1840 additions and 709 deletions

View File

@@ -97,8 +97,18 @@ class JournalServiceProvider extends ServiceProvider
private function registerGroupRepository()
{
// password verifier thing
$this->app->bind(TransactionGroupRepositoryInterface::class, TransactionGroupRepository::class);
$this->app->bind(
TransactionGroupRepositoryInterface::class,
function (Application $app) {
/** @var TransactionGroupRepositoryInterface $repository */
$repository = app(TransactionGroupRepository::class);
if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
return $repository;
}
);
}
/**