2023-04-11 09:21:20 +00:00
|
|
|
<?php
|
|
|
|
|
2023-09-26 09:39:39 +00:00
|
|
|
use App\Http\Controllers\Auth\SocialiteController;
|
|
|
|
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-09-26 09:39:39 +00:00
|
|
|
|
2023-04-14 07:50:22 +00:00
|
|
|
});
|
|
|
|
|
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';
|