Skip to content

Instantly share code, notes, and snippets.

@fabricecw
fabricecw / migration_permission_update_v1_to_v2.php
Last active June 8, 2023 21:45
Update spatie/laravel permission tables from V1 to V2
<?php
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class PermissionUpdateV1ToV2 extends Migration
{
/**
* Run the migrations.
*