41 lines
867 B
PHP
41 lines
867 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Carbon\Carbon;
|
|
|
|
|
|
class RolesSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('roles')->insert([
|
|
[
|
|
'role_name' => 'Admin',
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now()
|
|
|
|
],
|
|
[
|
|
'role_name' => 'Juri',
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now()
|
|
|
|
],
|
|
[
|
|
'role_name' => 'Siswa',
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now()
|
|
],
|
|
]);
|
|
}
|
|
}
|