Skip to content

Commit

Permalink
Merge pull request #24 from janicerar/master
Browse files Browse the repository at this point in the history
[Docs] Improved config documentation
  • Loading branch information
KABBOUCHI authored Nov 9, 2018
2 parents e31154e + aa6e875 commit ec08932
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ return [
'redirect_back' => true, // false (nova path), true or <url>
'redirect_to' => '/',
'key_down' => 'i', // Press `i` to impersonate user in details page
'middleware' => [
'base' => 'web', // Middleware used for nova-impersonate routes
'leave' => 'auth', // Extra middleware used for leave route
],
];
```

Expand Down
21 changes: 18 additions & 3 deletions config/nova-impersonate.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
<?php

return [
/**
* To inject the 'nova-impersonate::reverse' view in every route when impersonating
*/
'enable_middleware' => true,
'redirect_back' => true, // false (nova path), true or <url>
/**
* false (nova path), true or <url>
*/
'redirect_back' => true,
/**
* Redirect path
*/
'redirect_to' => '/',
/**
* Bind on key press to impersonate user in details page
*/
'key_down' => 'i',
/**
* Middleware used for nova-impersonate routes
*/
'middleware' => [
/**
* Middleware used for nova-impersonate routes
*/
'base' => 'web',
'base' => 'web',
/**
* Extra middleware used for leave route
*/
'leave' => 'auth',
'leave' => 'auth',
],
];

0 comments on commit ec08932

Please sign in to comment.