32 lines
970 B
PHP
32 lines
970 B
PHP
<?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 within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
|
|
Auth::routes();
|
|
|
|
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
|
|
Route::get('/about', [App\Http\Controllers\HomeController::class, 'about'])->name('about');
|
|
|
|
//Pengurusan Pengguna
|
|
|
|
|
|
Route::group(['middleware' => ['permission:pengguna'],'prefix'=>'pengguna'], function () {
|
|
Route::get('/index','PenggunaController@index');
|
|
Route::get('/taraf','PenggunaController@taraf');
|
|
Route::get('/roles','PenggunaController@roles');
|
|
}); |