Skip to content

Commit 4bb33f5

Browse files
committed
Installs 2014_10_12_100000_create_password_resets_table for older Laravel versions
1 parent cf424d0 commit 4bb33f5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/AuthCommand.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,18 @@ protected function exportBackend()
144144
} else {
145145
file_put_contents($appProvider, $this->compileStub('providers/AppServiceProvider'));
146146
}
147+
} else {
148+
copy(
149+
__DIR__.'/../stubs/migrations/2014_10_12_100000_create_password_resets_table.php',
150+
base_path('database/migrations/2014_10_12_100000_create_password_resets_table.php')
151+
);
147152
}
148153

149154
file_put_contents(
150155
base_path('routes/web.php'),
151156
file_get_contents(__DIR__.'/Auth/stubs/routes.stub'),
152157
FILE_APPEND
153158
);
154-
155-
copy(
156-
__DIR__.'/../stubs/migrations/2014_10_12_100000_create_password_resets_table.php',
157-
base_path('database/migrations/2014_10_12_100000_create_password_resets_table.php')
158-
);
159159
}
160160

161161
/**

0 commit comments

Comments
 (0)