Skip to content

Commit 99a4f72

Browse files
authored
Merge pull request coollabsio#2904 from LEstradioto/add-storage-link-to-dev-environment
add storage:link to dev environment
2 parents 505be9d + 1138ec0 commit 99a4f72

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/Console/Commands/Dev.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ public function init()
4848
echo "Generating APP_KEY.\n";
4949
Artisan::call('key:generate');
5050
}
51+
52+
// Generate STORAGE link if not exists
53+
if (! file_exists(public_path('storage'))) {
54+
echo "Generating STORAGE link.\n";
55+
Artisan::call('storage:link');
56+
}
57+
5158
// Seed database if it's empty
5259
$settings = InstanceSettings::find(0);
5360
if (! $settings) {

0 commit comments

Comments
 (0)