Laravel Route

pelatihan materi 2
 avatar
user_3285855
php
7 months ago
923 B
1
Indexable
Never
<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Auth::routes();

Route::middleware(['auth'])
->group(function(){
    Route::get('/dashboard', function () {
        return view('dashboard.index');
    });

    Route::get('/keuangan', function () {
        return view('keuangan.index');
    });

    Route::get('/kategori', function () {
        return view('kategori.index');
    });

    Route::get('/pengguna', function () {
        return view('pengguna.index');
    });
});
Leave a Comment