You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
<?php |
|
|
|
use Illuminate\Support\Facades\Route; |
|
use App\Http\Controllers\HomeController; |
|
use App\Http\Controllers\ContactController; |
|
use App\Http\Controllers\LoginController; |
|
use App\Http\Controllers\RoleController; |
|
|
|
/* |
|
|-------------------------------------------------------------------------- |
|
| 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('/', [HomeController::class, 'index']); |
|
Route::get('/contact', [ContactController::class, 'index']); |
|
Route::get('/login', [LoginController::class, 'index']); |
|
|
|
Route::get('/', function () { |
|
return view('home.index'); |
|
}); |
|
|
|
Route::get('/dashboard', function () { |
|
return view('dashboard'); |
|
})->middleware(['auth'])->name('dashboard'); |
|
|
|
require __DIR__ . '/auth.php'; |
|
Route::middleware('auth')->group(function () { |
|
Route::resource('roles', RoleController::class); |
|
}); |
|
|
|
// Route::controller(RoleController::class)->group(function () { |
|
// // Route::get('/roles', 'index'); |
|
// });
|
|
|