Merge pull request #2904 from LEstradioto/add-storage-link-to-dev-environment

add storage:link to dev environment
This commit is contained in:
Andras Bacsai 2024-09-30 15:48:10 +02:00 committed by GitHub
commit 99a4f721f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {