Initial commit of the complete City10 virtual city simulation platform. Backend (Laravel 13): - REST API with Sanctum tokens and session-based web authentication - Role-based access control (admin/user) with middleware protection - AI agent CRUD with OpenRouter.ai integration restricted to free models - Store management with 3D coordinates and AI shopkeeper assignment - Versioned legal documents (Terms, Privacy, Cookies) with LGPD audit trail - Math CAPTCHA on public forms and multi-language support (pt_BR, en, es) Frontend: - Responsive Blade templates with Tailwind CSS v4 - Three.js 3D city viewer with SSE chat streaming to AI agents - Admin panel for store and user administration Infrastructure: - MariaDB/MySQL database with comprehensive migrations - Database seeders for demo content and test accounts - PHPUnit test suite and Laravel Pint code styling - Vite build configuration with hot reload
47 lines
1.2 KiB
PHP
Executable File
47 lines
1.2 KiB
PHP
Executable File
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
/**
|
|
* Seeds the initial platform accounts.
|
|
*
|
|
* Creates the administrator and a regular test user with the credentials
|
|
* provided for the development environment. Passwords are stored using
|
|
* Laravel's bcrypt hashing through the model's "hashed" cast.
|
|
*/
|
|
class UserSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Seed the users table.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
User::updateOrCreate(
|
|
['email' => 'marcocosta@gmx.com'],
|
|
[
|
|
'name' => 'Marco Costa',
|
|
'password' => 'Mega886ax',
|
|
'role' => User::ROLE_ADMIN,
|
|
'locale' => 'pt_BR',
|
|
'is_active' => true,
|
|
'email_verified_at' => now(),
|
|
],
|
|
);
|
|
|
|
User::updateOrCreate(
|
|
['email' => 'user@sistema.net'],
|
|
[
|
|
'name' => 'Usuário de Testes',
|
|
'password' => 'User123',
|
|
'role' => User::ROLE_USER,
|
|
'locale' => 'pt_BR',
|
|
'is_active' => true,
|
|
'email_verified_at' => now(),
|
|
],
|
|
);
|
|
}
|
|
}
|