diff --git a/src/TailwindCssPreset.php b/src/TailwindCssPreset.php index 1b2c1d38..b7b48ab7 100644 --- a/src/TailwindCssPreset.php +++ b/src/TailwindCssPreset.php @@ -109,7 +109,17 @@ protected static function scaffoldAuth() FILE_APPEND ); - (new Filesystem)->copyDirectory(__DIR__.'/tailwindcss-stubs/resources/views', resource_path('views')); + tap(new Filesystem, function ($filesystem) { + $filesystem->copyDirectory(__DIR__.'/tailwindcss-stubs/resources/views', resource_path('views')); + + collect($filesystem->allFiles(base_path('vendor/laravel/ui/stubs/migrations'))) + ->each(function (SplFileInfo $file) use ($filesystem) { + $filesystem->copy( + $file->getPathname(), + database_path('migrations/'.$file->getFilename()) + ); + }); + }); } protected static function compileControllerStub()