PHPackages                             techouse/total-records - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. techouse/total-records

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

techouse/total-records
======================

A Laravel Nova card that displays the total number of records of a specific model.

v1.4.0(4y ago)852.4k↓50%4[2 issues](https://github.com/techouse/total-records/issues)MITPHPPHP &gt;=7.1.0

Since Oct 25Pushed 4y ago2 watchersCompare

[ Source](https://github.com/techouse/total-records)[ Packagist](https://packagist.org/packages/techouse/total-records)[ RSS](/packages/techouse-total-records/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (17)Used By (0)

Total Records
=============

[](#total-records)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c96e92da155fed5fbcd43cb68107b7c18d527be160b02e2d9f077175d6f1e9a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746563686f7573652f746f74616c2d7265636f7264732e7376673f7374796c653d666c6174)](https://packagist.org/packages/techouse/total-records)[![Total Downloads](https://camo.githubusercontent.com/249e5f4904c29ed751e607ea562838e0e9b586d170eecd941b41f6b66cf7da7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746563686f7573652f746f74616c2d7265636f7264732e7376673f7374796c653d666c6174)](https://packagist.org/packages/techouse/total-records)[![Licence](https://camo.githubusercontent.com/ba2ee65f02fd06f2c324376e9cc625c09b5d9095293ced8d0578673b07179aa8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746563686f7573652f746f74616c2d7265636f7264732e737667)](https://packagist.org/packages/techouse/total-records)[![PHP version](https://camo.githubusercontent.com/38f052a352f7d3c17d330dce91be7c76a2ef89db580b04972ed045a284b4a43a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746563686f7573652f746f74616c2d7265636f7264732f6465762d6d61737465722e737667)](https://packagist.org/packages/techouse/total-records)[![Codacy Badge](https://camo.githubusercontent.com/c229eb89062aea3c4449a29714ab6e1bc873be0e44bdfd6cac5c5c97670e574b/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6163386435653636346266363437663339383432316261633565666330326337)](https://www.codacy.com/manual/techouse/total-records?utm_source=github.com&utm_medium=referral&utm_content=techouse/total-records&utm_campaign=Badge_Grade)[![GitHub stars](https://camo.githubusercontent.com/31e3a42facafda94b9a536db770d71c7d63299b3cc3ed3553f856c385534e7e3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f746563686f7573652f746f74616c2d7265636f7264732e7376673f7374796c653d736f6369616c266c6162656c3d53746172266d61784167653d32353932303030)](https://github.com/techouse/total-records/stargazers)

##### A Laravel Nova card that displays the total number of records of a specific model.

[](#a-laravel-nova-card-that-displays-the-total-number-of-records-of-a-specific-model)

When you simply want to display the total number of some model's database records. Nothing less nothing more.

[![Total Records](./screenshot.png)](./screenshot.png)

Installation
------------

[](#installation)

You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require techouse/total-records
```

Usage
-----

[](#usage)

To add this card to the dashboard simply open up `App\Providers\NovaServiceProvider` and add it to the `cards` method like this:

```
