'SIAKAD', 'domain' => 'http://admin.siakad.test', 'webhook' => '/webhook', 'auth_type' => AuthType::NONE, 'credentials' => [], 'secret' => sha1('secret'.time()) ]); $pmb = Client::create([ 'name' => 'PMB', 'domain' => 'http://pmb.test', 'webhook' => '/api/webhook', 'auth_type' => AuthType::NONE, 'credentials' => [], 'secret' => sha1('secret'.time()) ]); $apiEndpoints = [ [ 'key' => ApiType::FACULTY, 'value' => '/InternalApi/list_data/fakultas', 'client_id' => $siakad->id ], [ 'key' => ApiType::STUDY_PROGRAM, 'value' => '/InternalApi/list_data/prodi', 'client_id' => $siakad->id ], [ 'key' => ApiType::TERM, 'value' => '/InternalApi/list_data/semester', 'client_id' => $siakad->id ], [ 'key' => ApiType::ADMISSION_TRACK, 'value' => '/api/jalur-pendaftaran', 'client_id' => $pmb->id ], [ 'key' => ApiType::ACADEMIC_PROGRAM, 'value' => '/api/sistem-kuliah', 'client_id' => $pmb->id ], [ 'key' => ApiType::ADMISSION_SCHEDULE, 'value' => '/api/jadwal-pendaftaran', 'client_id' => $pmb->id ], [ 'key' => ApiType::FEE_TYPE, 'value' => '/api/jenis-tagihan', 'client_id' => $pmb->id ], [ 'key' => ApiType::FEE_RATE, 'value' => '/api/biaya-pendaftaran', 'client_id' => $pmb->id ], ]; foreach ($apiEndpoints as $endpoint) { ApiEndpoint::create($endpoint); } } }