@@ -9,10 +9,10 @@ class CreateLaravelSecurityTables extends Migration
99 /**
1010 * {@inheritdoc}
1111 */
12- /* public function getConnection()
12+ public function getConnection ()
1313 {
1414 return config ('database.default ' );
15- }*/
15+ }
1616
1717 /**
1818 * Run the migrations.
@@ -24,15 +24,15 @@ public function up()
2424 if (!config ('laravel-security ' )) {
2525 throw new \Exception ('Cannot read config [laravel-security]. Have you done vendor:publish? ' );
2626 }
27- Schema::create (config ('laravel-security.database.password_history_table ' ), function (Blueprint $ table ) {
27+ Schema::create (config ('laravel-security.database.password_history_table ' , ' password_history ' ), function (Blueprint $ table ) {
2828 $ table ->increments ('id ' );
29- $ table ->bigInteger ('user_id ' );
29+ $ table ->bigInteger ('user_id ' )-> index () ;
3030 $ table ->string ('password ' , 60 );
3131 $ table ->timestamps ();
3232 });
33- Schema::create (config ('laravel-security.database.user_security_table ' ), function (Blueprint $ table ) {
33+ Schema::create (config ('laravel-security.database.user_security_table ' , ' user_extend_security ' ), function (Blueprint $ table ) {
3434 $ table ->increments ('id ' );
35- $ table ->bigInteger ('user_id ' );
35+ $ table ->bigInteger ('user_id ' )-> index () ;
3636 $ table ->date ('last_loggein_at ' )->nullable ();
3737 $ table ->date ('last_password_updated_at ' )->nullable ();
3838 $ table ->integer ('status ' )->default (10 );
0 commit comments