Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /home/elvh3918/www/pmm/database/migrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/elvh3918/www/pmm/database/migrations/2025_09_04_084852_create_register_permission_table.php
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Artisan;
use Database\Seeders\Admin\Setting\Register\RegisterPermissionSeeder;
use Database\Seeders\View\Admin\Setting\Register\VW_Register_Permission_Seeder;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('register_permission', function (Blueprint $table) {
            $table->id();
            $table->bigInteger('permission_id');
            $table->timestamps();
        });

        Artisan::call('db:seed', [
            '--class' => RegisterPermissionSeeder::class,
        ]);

        Artisan::call('db:seed', [
            '--class' => VW_Register_Permission_Seeder::class,
        ]);
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('register_permission');
    }
};

Yohohohohohooho | Sanrei Aya