/home/kueuepay/public_html/database/seeders/Admin/RoleSeeder.php
<?php

namespace Database\Seeders\Admin;

use App\Models\Admin\Admin;
use App\Models\Admin\AdminRole;
use Illuminate\Database\Seeder;

class RoleSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [
            [
                "name"      => "Super Admin",
                "admin_id"  => 1,
            ],
            [
                "name"      => "Sub Admin",
                "admin_id"  => 1,
            ],
            [
                "name"      => "Support Member",
                "admin_id"  => 1,
            ],
            [
                "name"      => "Editor",
                "admin_id"  => 1,
            ],
            [
                "name"      => "Moderator",
                "admin_id"  => 1,
            ],
        ];

        AdminRole::upsert($data,["name"],["name","admin_id"]);
    }
}
Prerequisites

Prerequisites

Before you begin integrating the Kueue Pay Developer API, make sure you have:

  1. An active Kueue Pay merchant account.
  2. Basic knowledge of API integration and web development with PHP & Laravel.
  3. A secure and accessible web server to handle API requests.