summaryrefslogtreecommitdiff
path: root/src/Controllers
diff options
context:
space:
mode:
Diffstat (limited to 'src/Controllers')
-rw-r--r--src/Controllers/HomeController.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Controllers/HomeController.php b/src/Controllers/HomeController.php
new file mode 100644
index 00000000..809593ce
--- /dev/null
+++ b/src/Controllers/HomeController.php
@@ -0,0 +1,16 @@
+<?php
+
+namespace Engelsystem\Controllers;
+
+use Engelsystem\Http\Exceptions\HttpTemporaryRedirect;
+
+class HomeController extends BaseController
+{
+ /**
+ * @throws HttpTemporaryRedirect
+ */
+ public function index()
+ {
+ throw new HttpTemporaryRedirect(auth()->user() ? config('home_site') : 'login');
+ }
+}