tethys/database/seeders/AccountsSeeder.php

49 lines
1.3 KiB
PHP
Raw Normal View History

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