add home and handle 404 page not found

This commit is contained in:
arifal
2025-01-17 02:29:52 +07:00
parent 84d8f3ca6a
commit 4de7067487
16 changed files with 1046 additions and 289 deletions

View File

@@ -9,8 +9,8 @@ class RoutingController extends Controller
{
public function index(Request $request)
{
if (Auth::user()) {
return redirect('index');
if (Auth::check()) {
return view('home.index');
} else {
return redirect('auth.signin');
}