mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
39 lines
788 B
PHP
39 lines
788 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Cachet.
|
|
*
|
|
* (c) Alt Three Services Limited
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
use CachetHQ\Cachet\Models\User;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class UsersTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeding.
|
|
*/
|
|
public function run()
|
|
{
|
|
$users = [
|
|
[
|
|
'username' => 'test',
|
|
'password' => 'test123',
|
|
'email' => 'test@test.com',
|
|
'level' => 1,
|
|
'api_key' => '9yMHsdioQosnyVK4iCVR',
|
|
],
|
|
];
|
|
|
|
User::truncate();
|
|
|
|
foreach ($users as $user) {
|
|
User::create($user);
|
|
}
|
|
}
|
|
}
|