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.
This commit is contained in:
Mekan1206
2025-12-21 19:50:38 +05:00
parent 76c05ebe7c
commit 1870583441
14 changed files with 307 additions and 12 deletions

View File

@@ -15,6 +15,7 @@
"halaxa/json-machine": "^1.2",
"joaopaulolndev/filament-edit-profile": "^2.0",
"laravel/framework": "^12.0",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.10.1",
"laravel/ui": "^4.6",
"mpdf/mpdf": "^8.2",