clara/routes/web.php

35 lines
1.1 KiB
PHP
Raw Normal View History

2023-04-11 09:21:20 +00:00
<?php
2023-10-05 16:02:43 +00:00
use App\Http\Controllers\Apps\PermissionManagementController;
use App\Http\Controllers\Apps\RoleManagementController;
use App\Http\Controllers\Apps\UserManagementController;
use App\Http\Controllers\Auth\SocialiteController;
2023-09-26 09:39:39 +00:00
use App\Http\Controllers\DashboardController;
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::middleware(['auth', 'verified'])->group(function () {
Route::get('/', [DashboardController::class, 'index']);
2023-04-14 07:50:22 +00:00
Route::get('/dashboard', [DashboardController::class, 'index'])->name('dashboard');
});
2023-04-11 09:21:20 +00:00
Route::get('/error', function () {
abort(500);
});
2023-09-26 09:39:39 +00:00
Route::get('/auth/redirect/{provider}', [SocialiteController::class, 'redirect']);
require __DIR__ . '/auth.php';