29 lines
981 B
PHP
29 lines
981 B
PHP
|
<?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');
|
||
|
});
|
||
|
|