run(); } $student_role = Role::query()->where('name', 'student')->first()->id; $author_role = Role::query()->where('name', 'author')->first()->id; $admin_role = Role::query()->where('name', 'admin')->first()->id; DB::table('users')->insert([ [ 'name' => 'user_student', 'password' => Hash::make('student_pass'), 'role_id' => $student_role ], [ 'name' => 'user_author', 'password' => Hash::make('author_pass'), 'role_id' => $author_role ], [ 'name' => 'user_admin', 'password' => Hash::make('admin_pass'), 'role_id' => $admin_role ], [ 'name' => 'superadmin', 'password' => Hash::make('superadmin'), 'role_id' => $admin_role ], ]); } }