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 8f68b2a commit 86cfcb5Copy full SHA for 86cfcb5
app/Http/Controllers/Dashboard/DashboardController.php
@@ -18,6 +18,7 @@
18
use CachetHQ\Cachet\Models\Subscriber;
19
use Illuminate\Routing\Controller;
20
use Illuminate\Support\Facades\Config;
21
+use Illuminate\Support\Facades\Redirect;
22
use Illuminate\Support\Facades\View;
23
use Jenssegers\Date\Date;
24
@@ -58,6 +59,16 @@ public function __construct(Feed $feed)
58
59
$this->dateTimeZone = Config::get('cachet.timezone');
60
}
61
62
+ /**
63
+ * Redirect /admin to /dashboard
64
+ *
65
+ * @return \Illuminate\Http\RedirectResponse
66
+ */
67
+ public function redirectAdmin()
68
+ {
69
+ return Redirect::route('dashboard.index');
70
+ }
71
+
72
/**
73
* Shows the dashboard view.
74
*
0 commit comments