A Laravel Nova card to display a back button.

v1.0.1 2021-05-31 10:00 UTC

This package is auto-updated.

Last update: 2021-06-02 08:04:25 UTC


Latest Stable Version Total Downloads

Adds a card that implements a back button to Nova, the content can be fully customized. The url is called through the Vue router and without a url set a history.go(-1) is called.

image image


You can install the package in to a Laravel app that uses Nova via composer:

composer require slash2nl/nova-back-button


Register your new card.

use SLASH2NL\NovaBackButton\NovaBackButton;

public function cards()
    return [ 
        (new NovaBackButton())
        (new NovaBackButton())
            ->markdown('# Hello World!'),

        (new NovaBackButton())


  • Set content, by default a back svg is used.
    • ->html('<h1>Hello!</h1>'): Set HTML or plain content.
    • ->markdown('# Hello!'): Set Markdown content that will be converted into HTML.
    • ->view('', []): Specify blade view file and optionally pass an array of data to view.
  • Styling
    • ->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:


The MIT License (MIT). Please see License File for more information.