Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lahirulhr authored Oct 31, 2022
1 parent 6751258 commit 5b5cfe6
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

The missing *Back button* of laravel nova 4

This back button uses javascript `history(-1)` method for navigation. Back button will be automatically attached to the default `Card` component.
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](/resources/img/sc-1.png)
Expand Down Expand Up @@ -41,7 +41,7 @@ public function tools()
```

3) Publish language files (optional)
3) Publish language & config files (optional)

```
php artisan vendor:publish --provider="Visanduma\NovaBackNavigation\ToolServiceProvider"
Expand All @@ -50,4 +50,25 @@ php artisan vendor:publish --provider="Visanduma\NovaBackNavigation\ToolServiceP
4) Great !. you are done


### Configure any urls to show the back button

``` php
<?php

// config for nova back button

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

"nova/resources/*/*",

]
];

```



0 comments on commit 5b5cfe6

Please sign in to comment.