visanduma/nova-back-navigation

The missing Back button of NOVA

v1.0.3 2022-10-31 04:52 UTC

This package is auto-updated.

Last update: 2024-03-29 04:52:19 UTC


README

banner.png?raw=true

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Laravel Nova back navigation

The missing Back button of laravel nova 4

This back button uses javascript history.back() method for navigation. Back button will be automatically attached to the default Card component. so additional configuration not needed

screenshot

Installation

  1. Run command
composer require visanduma/nova-back-navigation
  1. Register tool with NovaServiceProvider
use Visanduma\NovaBackNavigation\NovaBackNavigation;

class NovaServiceProvider extends NovaApplicationServiceProvider
{

public function tools()
    {
        return [
            ..
            new NovaBackNavigation(),
        ];
    }
    
  1. Publish language & config files (optional)
php artisan vendor:publish --provider="Visanduma\NovaBackNavigation\ToolServiceProvider"
  1. Great !. you are done

Configure any urls to show the back button

<?php

// config for nova back button

return [
    /*
    Enable back button for following routes
    */
    'enabled_urls' => [

        "nova/resources/*/*",

    ]
];