Files
Narzedzia_180088/config/Seeds/UsersSeed.php
180088 895cbddf06 Add new font files, images, and initial index.php for CakePHP setup
- Added new font files: Cakedingbats (TTF, WOFF, WOFF2) and Raleway (various styles and encodings).
- Included new images: cake-logo.png, cake.icon.png, cake.logo.svg, and cake.power.gif.
- Created initial index.php file for handling requests in CakePHP framework.
- Added .gitkeep file in the js directory to maintain the folder structure.
2025-11-25 14:28:51 +01:00

24 lines
505 B
PHP

<?php
declare(strict_types=1);
use Migrations\BaseSeed;
use Authentication\PasswordHasher\DefaultPasswordHasher;
class UsersSeed extends BaseSeed
{
public function run(): void
{
$hasher = new DefaultPasswordHasher();
$data = [
[
'name' => 'Administrator',
'email' => 'admin@example.com',
// UWAGA: haslo haszujemy tutaj:
'password' => $hasher->hash('Admin123!'),
'created' => date('Y-m-d H:i:s'),
'modified' => date('Y-m-d H:i:s'),
],
];
$table = $this->table('users');
$table->insert($data)->save();
}
}