diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php deleted file mode 100644 index 7561d1b..0000000 --- a/database/seeds/DatabaseSeeder.php +++ /dev/null @@ -1,31 +0,0 @@ -call(PermissionSeeder::class); - $user = User::create([ - 'firstname' => 'Admin', - 'surname' => '', - 'email' => 'admin@localhost', - 'password' => Hash::make('admin'), - ]); - - DB::table('users')->where('id', $user->id)->update([ - 'email_verified_at' => DB::raw('CURRENT_TIMESTAMP') - ]); - - $user->assignRole('administrator'); - } -} diff --git a/database/seeds/PermissionSeeder.php b/database/seeds/PermissionSeeder.php deleted file mode 100644 index c95c5fb..0000000 --- a/database/seeds/PermissionSeeder.php +++ /dev/null @@ -1,42 +0,0 @@ -get(); - $array = [ - 'roles_see', 'roles_edit', - 'status_see', 'status_edit', - 'project_see', 'project_edit', - 'user_see', 'user_edit', - 'order_see', 'order_edit' - ]; - - foreach($array as $name) { - if($permissions->contains('name', $name)) - continue; - - Permission::create([ - 'name' => $name - ]); - } - - $role = Role::create([ - 'name' => 'administrator', - 'readable_name' => 'Administrator', - 'color' => '#e74c3c', - 'index' => 1 - ]); - - $role->syncPermissions($array); - } -}