commit 85ebfb458b10e59e144ebab9f7c5b487848974bd
parent 88188b041e1f2c8de23072df8b11a65511c2779e
Author: MTRNord <mtrnord1@gmail.com>
Date: Wed, 18 Oct 2023 16:29:18 +0200
Always start on dashboard
Diffstat:
2 files changed, 5 insertions(+), 37 deletions(-)
diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
-
-<head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
-
- <title>Home ERP</title>
-
- <!-- Scripts -->
- @vite(['resources/css/app.css', 'resources/js/app.js'])
-</head>
-
-<body class="antialiased">
- <div
- class="relative sm:flex sm:justify-center sm:items-center min-h-screen bg-dots-darker bg-center bg-gray-100 dark:bg-dots-lighter dark:bg-gray-900 selection:bg-red-500 selection:text-white">
- @if (Route::has('login'))
- <livewire:welcome.navigation />
- @endif
-
- <div class="max-w-7xl mx-auto p-6 lg:p-8">
- <div class="mt-16">
-
- </div>
-
- <div class="flex justify-center mt-16 px-0 sm:items-center sm:justify-between">
- <div class="ml-4 text-center text-sm text-gray-500 dark:text-gray-400 sm:text-right sm:ml-0">
- Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }})
- </div>
- </div>
- </div>
- </div>
-</body>
-
-</html>
diff --git a/routes/web.php b/routes/web.php
@@ -13,7 +13,10 @@ use Illuminate\Support\Facades\Route;
|
*/
-Route::view('/', 'welcome');
+//Route::view('/', 'welcome');
+Route::get('/', function () {
+ return redirect('/dashboard');
+});
Route::view('dashboard', 'dashboard')
->middleware(['auth', 'verified'])
@@ -23,4 +26,4 @@ Route::view('profile', 'profile')
->middleware(['auth'])
->name('profile');
-require __DIR__.'/auth.php';
+require __DIR__ . '/auth.php';