Fix: Populate SSH keys in dev

This commit is contained in:
peaklabs-dev
2024-09-16 19:34:46 +02:00
parent b79b4015d7
commit a68fbefadb
3 changed files with 25 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Storage;
use App\Models\PrivateKey;
return new class extends Migration
class PopulateSshKeysDirectory extends Migration
{
public function up()
{
@@ -17,10 +17,4 @@ return new class extends Migration
}
});
}
public function down()
{
Storage::disk('ssh-keys')->deleteDirectory('');
Storage::disk('ssh-keys')->makeDirectory('');
}
};
}