Pārlūkot izejas kodu

fix user factory, fix loadingtimes of users table

1day2die 2 gadi atpakaļ
vecāks
revīzija
b8516c423e

+ 0 - 1
database/factories/UserFactory.php

@@ -22,7 +22,6 @@ class UserFactory extends Factory
             'email_verified_at' => $this->faker->dateTimeBetween('-30 days', now()),
             'email_verified_at' => $this->faker->dateTimeBetween('-30 days', now()),
             'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
             'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
             'remember_token' => Str::random(10),
             'remember_token' => Str::random(10),
-            'email_verified' => true,
         ];
         ];
     }
     }
 }
 }

+ 1 - 1
themes/default/views/admin/users/index.blade.php

@@ -77,7 +77,7 @@
                     url: '//cdn.datatables.net/plug-ins/1.11.3/i18n/{{config("SETTINGS::LOCALE:DATATABLES")}}.json'
                     url: '//cdn.datatables.net/plug-ins/1.11.3/i18n/{{config("SETTINGS::LOCALE:DATATABLES")}}.json'
                 },
                 },
                 processing: true,
                 processing: true,
-                serverSide: false, //increases loading times too much? change back to "true" if it does
+                serverSide: true, //why was this set to false before? increased loadingtimes by 10 seconds
                 stateSave: true,
                 stateSave: true,
                 ajax: "{{route('admin.users.datatable')}}",
                 ajax: "{{route('admin.users.datatable')}}",
                 order: [[ 11, "asc" ]],
                 order: [[ 11, "asc" ]],