feat: Complete Woles Framework v1.0 with enterprise-grade UI
- Add comprehensive error handling system with custom error pages - Implement professional enterprise-style design with Tailwind CSS - Create modular HMVC architecture with clean separation of concerns - Add security features: CSRF protection, XSS filtering, Argon2ID hashing - Include CLI tools for development workflow - Add error reporting dashboard with system monitoring - Implement responsive design with consistent slate color scheme - Replace all emoji icons with professional SVG icons - Add comprehensive test suite with PHPUnit - Include database migrations and seeders - Add proper exception handling with fallback pages - Implement template engine with custom syntax support - Add helper functions and facades for clean code - Include proper logging and debugging capabilities
This commit is contained in:
19
database/seeders/DatabaseSeeder.php
Normal file
19
database/seeders/DatabaseSeeder.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Core\Database\Seeder;
|
||||
|
||||
/**
|
||||
* Database seeder
|
||||
*/
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$this->call('UserSeeder');
|
||||
}
|
||||
}
|
||||
50
database/seeders/UserSeeder.php
Normal file
50
database/seeders/UserSeeder.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Core\Database\Seeder;
|
||||
|
||||
/**
|
||||
* User seeder
|
||||
*/
|
||||
class UserSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$users = [
|
||||
[
|
||||
'name' => 'Administrator',
|
||||
'email' => 'admin@novacore.dev',
|
||||
'password' => password_hash('password123', PASSWORD_ARGON2ID),
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s')
|
||||
],
|
||||
[
|
||||
'name' => 'John Doe',
|
||||
'email' => 'john@example.com',
|
||||
'password' => password_hash('password123', PASSWORD_ARGON2ID),
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s')
|
||||
],
|
||||
[
|
||||
'name' => 'Jane Smith',
|
||||
'email' => 'jane@example.com',
|
||||
'password' => password_hash('password123', PASSWORD_ARGON2ID),
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s')
|
||||
]
|
||||
];
|
||||
|
||||
foreach ($users as $user) {
|
||||
$this->connection->execute(
|
||||
"INSERT INTO users (name, email, password, created_at, updated_at) VALUES (?, ?, ?, ?, ?)",
|
||||
array_values($user)
|
||||
);
|
||||
}
|
||||
|
||||
echo "✓ Users seeded successfully\n";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user