- added nearly all migration files
- added nearly all database seed files
This commit is contained in:
parent
489546ef6e
commit
7641c1dfdf
40 changed files with 1168 additions and 915 deletions
48
database/seeds/AccountsSeeder.php
Normal file
48
database/seeds/AccountsSeeder.php
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Database\DisableForeignKeys;
|
||||
use Database\TruncateTable;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Faker\Factory as Faker;
|
||||
|
||||
class AccountsTableSeeder extends Seeder
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
// DB::table('users')->delete();
|
||||
|
||||
// User::create([
|
||||
// 'name' => str_random(10),
|
||||
// 'email' => 'foo@gmail.com',
|
||||
// 'password' => bcrypt('secret')
|
||||
// ]);
|
||||
DB::table('accounts')->insert([
|
||||
[
|
||||
'login' => "admin",
|
||||
'email' => "repository" . '@geologie.ac.at',
|
||||
'password' => bcrypt('admin007'),
|
||||
'created_at' => Carbon::now(),
|
||||
],
|
||||
[
|
||||
'login' => "Submitty",
|
||||
'email' => "submitter@geologie.ac.at",
|
||||
'password' => bcrypt('rdr007'),
|
||||
'created_at' => Carbon::now(),
|
||||
],
|
||||
[
|
||||
'login' => "Eddy",
|
||||
'email' => "editor@geologie.ac.at",
|
||||
'password' => bcrypt('rdr007'),
|
||||
'created_at' => Carbon::now(),
|
||||
],
|
||||
[
|
||||
'login' => "Review",
|
||||
'email' => "review@geologie.ac.at",
|
||||
'password' => bcrypt('rdr007'),
|
||||
'created_at' => Carbon::now(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue