Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Commit

Permalink
Add changelog, fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Liamso committed Jul 7, 2020
1 parent 3c0bbf8 commit 200623f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0] - 2020-07-07
### Added support for caching routes
You can now use `php artisan route:cache` on your project with voyager-frontend.

For upgrading, you should revise calls to the following named routes, which have been updated and can be viewed using `php artisan route:list` :

- voyager-frontend.account
- This has become both voyager-frontend.account & voyager-frontend.account.update
- voyager-frontend.impersonate
- This has become both voyager-frontend.impersonate & voyager-frontend.account.impersonate.admin
4 changes: 2 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* User impersonation
*/
Route::get('/admin/users/impersonate/{userId}', "$accountController@impersonateUser")
->name('.impersonate')
->middleware(['web', 'admin.user'])->name('.admin');
->name('.impersonate.admin')
->middleware(['web', 'admin.user']);

Route::post('/admin/users/impersonate/{originalId}', "$accountController@impersonateUser")
->name('.impersonate')
Expand Down

0 comments on commit 200623f

Please sign in to comment.