From 53f451c54c8ffbec03b0ebf504234271d5689385 Mon Sep 17 00:00:00 2001 From: Juan Felipe Zapata Moreno Date: Thu, 12 Mar 2026 12:23:17 -0600 Subject: [PATCH] =?UTF-8?q?feat:=20agrega=20migraciones=20para=20permisos?= =?UTF-8?q?=20de=20gesti=C3=B3n=20de=20APK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2026_03_12_121447_seed_apk_permisos.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 database/migrations/data/2026_03_12_121447_seed_apk_permisos.php diff --git a/database/migrations/data/2026_03_12_121447_seed_apk_permisos.php b/database/migrations/data/2026_03_12_121447_seed_apk_permisos.php new file mode 100644 index 0000000..1f70ae7 --- /dev/null +++ b/database/migrations/data/2026_03_12_121447_seed_apk_permisos.php @@ -0,0 +1,36 @@ + 'App Móvil']); + + Permission::firstOrCreate( + ['name' => 'apk.index'], + ['guard_name' => 'api', 'description' => 'Ver lista de versiones del apk', 'permission_type_id' => $apk->id] + ); + + $apk = PermissionType::firstOrCreate(['name' => 'Cargar Apk']); + + Permission::firstOrCreate( + ['name' => 'apk.create'], + ['guard_name' => 'api', 'description' => 'Crear nueva versión del apk', 'permission_type_id' => $apk->id] + ); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Permission::whereIn('name', ['apk.index', 'apk.create'])->delete(); + } +};