Heera/routes/web.php

29 lines
981 B
PHP
Raw Normal View History

2024-05-16 03:46:08 +00:00
<?php
use App\Http\Middleware\PermissionMiddleware;
use Illuminate\Support\Facades\Route;
use Modules\User\Http\Controllers\PermissionController;
/*
|--------------------------------------------------------------------------
| 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::withoutMiddleware([PermissionMiddleware::class])->group(function () {
Route::get('/', function () {
return view('auth.login');
})->name('login');
Auth::routes();
Route::get('/generate-permissions', [PermissionController::class, 'generatePermissionFromRoutes'])->name('permission.generatePermissionFromRoutes');
Route::get('/dashboard', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
});