add seeding file
This commit is contained in:
parent
84bf64d5ca
commit
7d21ce97e9
1 changed files with 12 additions and 0 deletions
12
storage/seedDb.php
Normal file
12
storage/seedDb.php
Normal 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);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue