Permalink
Browse files

Add page variable to middleware if auth'd

  • Loading branch information...
CraigChilds94 committed Mar 8, 2016
1 parent b816987 commit 86befab67d509fd3c98ae1c38991046d8eecf0db
Showing with 2 additions and 1 deletion.
  1. +2 −1 anchor/routes/admin.php
@@ -11,7 +11,8 @@
Route::action('guest', function () {
if (Auth::user()) {
return Response::redirect('admin/post');
$page = in_array(Config::meta('dashboard_page'), array('panel', 'pages', 'posts')) ? Config::meta('dashboard_page') : 'panel';
return Response::redirect('admin/' . $page);
}
});

0 comments on commit 86befab

Please sign in to comment.