skip to Main Content

How to user the prefix route name – Laravel

Route::middleware(['auth', 'role:admin'])->name('admin.')->prefix('admin')->group(function(){ Route::get('/role', [RoleController::class, 'index'])->name('index'); }); I want to user this route name. How I can? <li class="nav-item"> <a href="{{ url('admin/role') }}" class="nav-link"> <i class="far fa-circle nav-icon"></i> <p>Roles</p> </a> </li> user as url and it's working but I want to…

VIEW QUESTION
Back To Top
Search