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

namespace Database\Seeders\Admin;

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

class AdminHasRoleSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [
            [
                'admin_id'      => 1,
                'admin_role_id' => 1,
                'last_edit_by'  => 1,
            ],
            
        ];

        AdminHasRole::insert($data);
    }
}
Error Handling

Error Handling

In case of an error, the API will return an error response containing a specific error code 400, 403 Failed and a user-friendly message. Refer to our API documentation for a comprehensive list of error codes and their descriptions.