A Laravel Nova card to display a back button.
workup/nova-back-button is a Laravel package for a laravel nova card to display a back button..
It currently has 0 GitHub stars and 15 downloads on Packagist (latest version v2.0.2.002).
Install it with composer require workup/nova-back-button.
Discover more Laravel packages by workup
or browse all Laravel packages to compare alternatives.
Last updated
Adds a card that implements a back button to Nova, the content can be fully customized. The url is called through the router and without a url set a history.go(-1) is called.

You can install the package in to a Laravel app that uses Nova via composer:
composer require Workup/nova-back-button
use Workup\NovaBackButton\NovaBackButton;
public function cards()
{
return [
(new NovaBackButton())
->onlyOnDetail(),
(new NovaBackButton())
->onlyOnDetail()
->width('1/3')
->markdown('# Hello World!'),
(new NovaBackButton())
->onlyOnDetail()
->width('1/3')
->view('partials.back-button')
->url(sprintf('%s/resources/%s/%d', config('nova.path'), User::uriKey(), \App\Models\User::first()->id)),
];
}
->html('<h1>Hello!</h1>'): Set HTML or plain content.->markdown('# Hello!'): Set Markdown content that will be converted into HTML.->view('path.to.view', []): Specify blade view file and optionally pass an array of data to view.->center(false): Center card's content. false by default.->withoutCardStyles(true): Whether to use standard Nova Card styles for a card (background, padding, etc). false by default.->forceFullWidth(true): Force the card to be full width. A fix for nova cards order.This package was created with the help of: https://github.com/InteractionDesignFoundation/nova-html-card
The MIT License (MIT). Please see License File for more information.