Se cargan las modificaciones para pasarela stripe
This commit is contained in:
@@ -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');
|
||||
}
|
||||
};
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user