Cleaned up the controller and prepared for tests

This commit is contained in:
stanjg
2018-05-26 20:58:49 +02:00
parent 095d85bb60
commit 86e7085396
4 changed files with 85 additions and 21 deletions

View File

@@ -296,4 +296,14 @@ abstract class EloquentRepository extends Repository implements RepositoryInterf
return $this->getBuilder()->getConnection()->statement($statement, $bindings);
}
/**
* Get the amount of entries in the database
*
* @return int
*/
public function count(): int
{
return $this->getBuilder()->count();
}
}