Files
tbbank-new/routes/web.php
Mekan1206 1870583441 Add Laravel Sanctum for API authentication and update routes
- Included `laravel/sanctum` in `composer.json` for lightweight API authentication.
- Updated `User` model to use `HasApiTokens` trait for token management.
- Configured API routing in `bootstrap/app.php`.
- Modified `DatabaseSeeder` to include `ShieldSeeder` and adjusted `FillJsonData` seeder method.
- Changed JSON data path in `ProvincesMigrator` for testing purposes.
- Updated web routes to utilize `MigrationController` for better organization.
2025-12-21 19:50:38 +05:00

14 lines
519 B
PHP

<?php
use App\Http\Controllers\MigrationController;
use Database\Seeders\Migrators\MediaMigrator;
use Illuminate\Support\Facades\Route;
Route::redirect('/', filament_path());
Route::get('test', [MigrationController::class, 'index']);
// Route::middleware(['auth'])->group(function () {
// Route::get('password-change', [PasswordChangeController::class, 'index'])->name('password-change');
// Route::post('password-change', [PasswordChangeController::class, 'update'])->name('password-change.update');
// });