<?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);
}
}
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.