visanduma / nova-back-navigation
The missing Back button of NOVA
Installs: 5 717
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- php: ^8.0
- laravel/nova: ^4.0
This package is auto-updated.
Last update: 2024-10-29 06:25:42 UTC
README
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
Installation
- Run command
composer require visanduma/nova-back-navigation
- Register tool with
NovaServiceProvider
use Visanduma\NovaBackNavigation\NovaBackNavigation;
class NovaServiceProvider extends NovaApplicationServiceProvider
{
public function tools()
{
return [
..
new NovaBackNavigation(),
];
}
- Publish language & config files (optional)
php artisan vendor:publish --provider="Visanduma\NovaBackNavigation\ToolServiceProvider"
- 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/*/*", ] ];