PHPackages                             daniel-de-wit/nova-single-record-resource - 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. [Admin Panels](/categories/admin)
4. /
5. daniel-de-wit/nova-single-record-resource

ActiveLibrary[Admin Panels](/categories/admin)

daniel-de-wit/nova-single-record-resource
=========================================

Laravel Nova Single Record Resource. Shows a link in the navigation bar directly to the only record of the resource

v1.2.1(5y ago)18119.9k↓25.8%9[1 issues](https://github.com/daniel-de-wit/nova-single-record-resource/issues)[1 PRs](https://github.com/daniel-de-wit/nova-single-record-resource/pulls)MITBladePHP &gt;=7.1.0

Since Dec 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/daniel-de-wit/nova-single-record-resource)[ Packagist](https://packagist.org/packages/daniel-de-wit/nova-single-record-resource)[ Docs](https://github.com/daniel-de-wit/nova-single-record-resource)[ RSS](/packages/daniel-de-wit-nova-single-record-resource/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)DependenciesVersions (9)Used By (0)

Laravel Nova: Single Record Resource
====================================

[](#laravel-nova-single-record-resource)

[![License](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://packagist.org/packages/daniel-de-wit/nova-single-record-resource)[![Latest Version on Packagist](https://camo.githubusercontent.com/08e0bcdb1dd589eb67417cff0dd3a9377488f85ee0a99c75963e743ff1d7153c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e69656c2d64652d7769742f6e6f76612d73696e676c652d7265636f72642d7265736f757263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daniel-de-wit/nova-single-record-resource)[![Total Downloads](https://camo.githubusercontent.com/1ac8d996afab895188290135219672c1fa6ec969fe3a6f536a817bc3de73d945/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e69656c2d64652d7769742f6e6f76612d73696e676c652d7265636f72642d7265736f757263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daniel-de-wit/nova-single-record-resource)[![StyleCI](https://camo.githubusercontent.com/62953f9a4d84fe77bfe076a27f0d51c815b2029b9125e3e443dd1a8e1d45fa1c/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136303731303336322f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/160710362)

Adds the ability to create a navigation link directly to the detail page of a resource. Useful for models that will contain only a single record.

[![](https://github.com/daniel-de-wit/nova-single-record-resource/raw/master/demo.gif)](https://github.com/daniel-de-wit/nova-single-record-resource/raw/master/demo.gif)

Prerequisites
-------------

[](#prerequisites)

- [Laravel](https://laravel.com/)
- [Laravel Nova](https://nova.laravel.com/)

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

[](#installation)

```
$ composer require daniel-de-wit/nova-single-record-resource

```

Modify `app/Nova/Resource.php` to implement `SingleRecordResourceInterface` and the `SupportSingleRecordNavigationLinks` trait:

```
