Skip to content

Commit

Permalink
add storage:link to dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
LEstradioto committed Jul 21, 2024
1 parent 7459ab2 commit 1138ec0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Console/Commands/Dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ public function init()
echo "Generating APP_KEY.\n";
Artisan::call('key:generate');
}

// Generate STORAGE link if not exists
if (! file_exists(public_path('storage'))) {
echo "Generating STORAGE link.\n";
Artisan::call('storage:link');
}

// Seed database if it's empty
$settings = InstanceSettings::find(0);
if (! $settings) {
Expand Down

0 comments on commit 1138ec0

Please sign in to comment.