2019-08-29 14:58:35 +00:00
|
|
|
<?php
|
|
|
|
|
2022-08-10 09:18:10 +00:00
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
use Illuminate\Support\Carbon;
|
2020-07-28 18:29:03 +00:00
|
|
|
// use Database\DisableForeignKeys;
|
|
|
|
// use Database\TruncateTable;
|
2019-08-29 14:58:35 +00:00
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
|
|
class AccountsTableSeeder extends Seeder
|
|
|
|
{
|
2022-08-10 09:18:10 +00:00
|
|
|
/**
|
|
|
|
* Seed the application's database.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function run(): void
|
2019-08-29 14:58:35 +00:00
|
|
|
{
|
2022-08-10 09:18:10 +00:00
|
|
|
|
|
|
|
// \App\Models\User::factory(10)->create();
|
2019-08-29 14:58:35 +00:00
|
|
|
DB::table('accounts')->insert([
|
|
|
|
[
|
|
|
|
'login' => "admin",
|
2020-07-28 18:29:03 +00:00
|
|
|
'email' => "admin@localhost",
|
|
|
|
'password' => bcrypt('secret'),
|
2019-08-29 14:58:35 +00:00
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'login' => "Submitty",
|
2020-07-28 18:29:03 +00:00
|
|
|
'email' => "submitter@localhost",
|
|
|
|
'password' => bcrypt('secret'),
|
2019-08-29 14:58:35 +00:00
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'login' => "Eddy",
|
2020-07-28 18:29:03 +00:00
|
|
|
'email' => "editor@localhost",
|
|
|
|
'password' => bcrypt('secret'),
|
2019-08-29 14:58:35 +00:00
|
|
|
'created_at' => Carbon::now(),
|
2019-09-02 14:58:08 +00:00
|
|
|
],
|
2019-08-29 14:58:35 +00:00
|
|
|
[
|
|
|
|
'login' => "Review",
|
2020-07-28 18:29:03 +00:00
|
|
|
'email' => "review@localhost",
|
|
|
|
'password' => bcrypt('secret'),
|
2019-08-29 14:58:35 +00:00
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|