- 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.
20 lines
337 B
PHP
20 lines
337 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Seed the application's database.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$this->call([
|
|
ShieldSeeder::class,
|
|
]);
|
|
}
|
|
}
|