101 lines
3.5 KiB
PHP
101 lines
3.5 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\Hash;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Seed the application's database.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('users')->insert([
|
|
[
|
|
'username' => 'Administrator LKS',
|
|
'email' => 'admin@gmail.com',
|
|
'password' => Hash::make('loginadmin'),
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now()
|
|
],
|
|
// [
|
|
// 'username' => 'Juri Seleksi RPL',
|
|
// 'email' => 'jurirpl@gmail.com',
|
|
// 'password' => bcrypt('password'),
|
|
// 'created_at' => Carbon::now(),
|
|
// 'updated_at' => Carbon::now()
|
|
// ],
|
|
// [
|
|
// 'username' => 'Juri Seleksi MM',
|
|
// 'email' => 'jurimm@gmail.com',
|
|
// 'password' => bcrypt('password'),
|
|
// 'created_at' => Carbon::now(),
|
|
// 'updated_at' => Carbon::now()
|
|
// ],
|
|
// [
|
|
// 'username' => 'Juri Seleksi TKJ',
|
|
// 'email' => 'juritkj@gmail.com',
|
|
// 'password' => bcrypt('password'),
|
|
// 'created_at' => Carbon::now(),
|
|
// 'updated_at' => Carbon::now()
|
|
// ],
|
|
// [
|
|
// 'username' => 'Peserta Seleksi RPL 1',
|
|
// 'email' => 'siswarpl1@gmail.com',
|
|
// 'password' => bcrypt('password'),
|
|
// 'created_at' => Carbon::now(),
|
|
// 'updated_at' => Carbon::now()
|
|
// ],
|
|
// [
|
|
// 'username' => 'Peserta Seleksi RPL 2',
|
|
// 'email' => 'siswarpl2@gmail.com',
|
|
// 'password' => bcrypt('password'),
|
|
// 'created_at' => Carbon::now(),
|
|
// 'updated_at' => Carbon::now()
|
|
// ],
|
|
// [
|
|
// 'username' => 'Peserta Seleksi MM 1',
|
|
// 'email' => 'siswamm1@gmail.com',
|
|
// 'password' => bcrypt('password'),
|
|
// 'created_at' => Carbon::now(),
|
|
// 'updated_at' => Carbon::now()
|
|
// ],
|
|
// [
|
|
// 'username' => 'Peserta Seleksi MM 2',
|
|
// 'email' => 'siswamm2@gmail.com',
|
|
// 'password' => bcrypt('password'),
|
|
// 'created_at' => Carbon::now(),
|
|
// 'updated_at' => Carbon::now()
|
|
// ],
|
|
// [
|
|
// 'username' => 'Peserta Seleksi TKJ 1',
|
|
// 'email' => 'siswatkj1@gmail.com',
|
|
// 'password' => bcrypt('password'),
|
|
// 'created_at' => Carbon::now(),
|
|
// 'updated_at' => Carbon::now()
|
|
// ],
|
|
// [
|
|
// 'username' => 'Peserta Seleksi TKJ 2',
|
|
// 'email' => 'siswatkj2@gmail.com',
|
|
// 'password' => bcrypt('password'),
|
|
// 'created_at' => Carbon::now(),
|
|
// 'updated_at' => Carbon::now()
|
|
// ],
|
|
]);
|
|
|
|
$this->call(RolesSeeder::class);
|
|
$this->call(UserRolesSeeder::class);
|
|
$this->call(JurusanSeeder::class);
|
|
// $this->call(SiswaSeeder::class);
|
|
// $this->call(GuruSeeder::class);
|
|
// $this->call(PenilaianSeeder::class);
|
|
}
|
|
}
|