We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7513797 commit 64c1a41Copy full SHA for 64c1a41
modules/backend/controllers/Index.php
@@ -6,6 +6,8 @@
6
use Backend\Classes\Controller;
7
use Backend\Widgets\ReportContainer;
8
9
+use Winter\Storm\Support\Arr;
10
+
11
/**
12
* Dashboard controller
13
*
@@ -75,7 +77,7 @@ protected function checkPermissionRedirect()
75
77
$true = function () {
76
78
return true;
79
};
- if ($first = array_first(BackendMenu::listMainMenuItems(), $true)) {
80
+ if ($first = Arr::first(BackendMenu::listMainMenuItems(), $true)) {
81
return Redirect::intended($first->url);
82
}
83
return Backend::redirect('backend/users/myaccount');
0 commit comments