visanduma/nova-back-navigation

The missing Back button of NOVA

Downloads

4249

Stars

4

Version

v1.0.3

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/*/*",

    ]
];

Visanduma

Author

Visanduma