Merge pull request #2904 from LEstradioto/add-storage-link-to-dev-environment
add storage:link to dev environment
This commit is contained in:
commit
99a4f721f1
1 changed files with 7 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue