Se cargan las modificaciones para pasarela stripe

This commit is contained in:
2026-03-12 17:17:03 -06:00
parent 46a0f8b1c3
commit 58e27fc5fc
10 changed files with 99 additions and 8 deletions
@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('nivel_plane', function (Blueprint $table) {
$table->unsignedBigInteger('nivel_id');
$table->foreign('nivel_id')->references('id')->on('nivels');
$table->unsignedBigInteger('plane_id');
$table->foreign('plane_id')->references('id')->on('planes');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('nivel_plane');
}
};
+1 -1
View File
@@ -16,7 +16,7 @@ class RoleSeeder extends Seeder
$role1 = Role::create(['name'=>'Admin']);
$role2 = Role::create(['name'=>'Blogger']);
$role3 = Role::create(['name'=>'Promotor']);
$role4 = Role::create(['name'=>'alumno']);
$role4 = Role::create(['name'=>'Alumno']);
Permission::create(['name'=>'note.index','description'=>'Ver notas'])->syncRoles([$role2]);
Permission::create(['name'=>'note.create','description'=>'Crear notas'])->syncRoles([$role2]);