@@ -22,7 +22,9 @@ public function handle(): void
22
22
$ this ->copyResourcesComponentsFiles ();
23
23
$ this ->copyTranslationFile ();
24
24
25
- $ this ->call ('storage:link ' );
25
+ if (!is_link (public_path ('storage ' ))) {
26
+ $ this ->call ('storage:link ' );
27
+ }
26
28
27
29
$ this ->call ('modular:blog-migrate ' );
28
30
@@ -45,39 +47,39 @@ private function copyBlogModuleDirectory(): void
45
47
{
46
48
$ this ->info ('Copying Blog Module directory... ' );
47
49
(new Filesystem )->ensureDirectoryExists (base_path ('modules ' ));
48
- (new Filesystem )->copyDirectory (__DIR__ . '/../../stubs/modules/Blog ' , base_path ('modules/Blog ' ));
50
+ (new Filesystem )->copyDirectory (__DIR__ . '/../../stubs/modules/Blog ' , base_path ('modules/Blog ' ));
49
51
$ this ->info ('Blog Module directory copied successfully. ' );
50
52
}
51
53
52
54
private function copyResourcesComponentsFiles (): void
53
55
{
54
56
$ this ->info ('Copying Blog Module components... ' );
55
57
(new Filesystem )->ensureDirectoryExists (resource_path ('js/Components/Modules/Blog ' ));
56
- (new Filesystem )->copyDirectory (__DIR__ . '/../../stubs/resources/js/Components/Modules/Blog ' , resource_path ('js/Components/Modules/Blog ' ));
58
+ (new Filesystem )->copyDirectory (__DIR__ . '/../../stubs/resources/js/Components/Modules/Blog ' , resource_path ('js/Components/Modules/Blog ' ));
57
59
$ this ->info ('Blog Module components copied successfully. ' );
58
60
}
59
61
60
62
private function copyBlogSeederImages (): void
61
63
{
62
64
$ this ->info ('Copying Blog Seeder images... ' );
63
65
(new Filesystem )->ensureDirectoryExists (resource_path ('images/blog ' ));
64
- (new Filesystem )->copyDirectory (__DIR__ . '/../../stubs/resources/images/blog ' , resource_path ('images/blog ' ));
66
+ (new Filesystem )->copyDirectory (__DIR__ . '/../../stubs/resources/images/blog ' , resource_path ('images/blog ' ));
65
67
$ this ->info ('Blog Module Seeder images copied successfully. ' );
66
68
}
67
69
68
70
private function copyResourcesFiles (): void
69
71
{
70
72
$ this ->info ('Copying Blog Module resources... ' );
71
73
(new Filesystem )->ensureDirectoryExists (resource_path ('js/Pages ' ));
72
- (new Filesystem )->copyDirectory (__DIR__ . '/../../stubs/resources/js/Pages ' , resource_path ('js/Pages ' ));
74
+ (new Filesystem )->copyDirectory (__DIR__ . '/../../stubs/resources/js/Pages ' , resource_path ('js/Pages ' ));
73
75
$ this ->info ('Blog Module resources copied successfully. ' );
74
76
}
75
77
76
78
private function copyResourcesSiteFiles (): void
77
79
{
78
80
$ this ->info ('Copying Blog Module resources-site... ' );
79
81
(new Filesystem )->ensureDirectoryExists (base_path ('resources-site ' ));
80
- (new Filesystem )->copyDirectory (__DIR__ . '/../../stubs/resources-site ' , base_path ('resources-site ' ));
82
+ (new Filesystem )->copyDirectory (__DIR__ . '/../../stubs/resources-site ' , base_path ('resources-site ' ));
81
83
$ this ->info ('Blog Module resources-site copied successfully. ' );
82
84
}
83
85
@@ -87,7 +89,7 @@ private function copyTranslationFile(): void
87
89
88
90
if (! file_exists ($ paginationEnglish )) {
89
91
(new Filesystem )->ensureDirectoryExists (base_path ('lang/en ' ));
90
- copy (__DIR__ . '/../../stubs/lang/en/pagination.php ' , base_path ('lang/en/pagination.php ' ));
92
+ copy (__DIR__ . '/../../stubs/lang/en/pagination.php ' , base_path ('lang/en/pagination.php ' ));
91
93
}
92
94
}
93
95
}
0 commit comments