add seeding file

This commit is contained in:
Yisroel Baum 2025-11-02 09:40:48 +02:00
parent 84bf64d5ca
commit 7d21ce97e9
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

12
storage/seedDb.php Normal file
View file

@ -0,0 +1,12 @@
<?php
$users = [
[
'email' => 'test@test.com',
'password' => password_hash('password', PASSWORD_DEFAULT),
],
];
$path = __DIR__.'/../storage/users.json';
$data = json_encode($users, JSON_PRETTY_PRINT);
file_put_contents($path, $data);