mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
backend registration step 1
This commit is contained in:
@@ -29,7 +29,6 @@ abstract class AbstractValidation
|
||||
|
||||
abstract protected function messages(): array;
|
||||
|
||||
|
||||
/**
|
||||
* @param DataTransferObject $object
|
||||
* @return bool
|
||||
@@ -39,8 +38,8 @@ abstract class AbstractValidation
|
||||
|
||||
$validator = $this->validator::make($this->data($object), $this->rules(), $this->messages());
|
||||
|
||||
if($validator->fails()){
|
||||
throw new RequestValidationException($validator->messages()->first());
|
||||
if($validator->fails()) {
|
||||
throw new RequestValidationException($validator->messages());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -23,7 +23,8 @@ abstract class AbstractUpdateRecord
|
||||
}
|
||||
|
||||
} catch (QueryException $exception){
|
||||
throw new MalformedRequestException('Unable to update the record due to unexpected error');
|
||||
throw new MalformedRequestException($exception);
|
||||
// throw new MalformedRequestException('Unable to update the record due to unexpected error');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Accounts\ControllersLogic;
|
||||
|
||||
use App\Classes\General\Abstracts\AbstractControllerLogic;
|
||||
|
||||
use App\Classes\Modules\Accounts\Standards\Rules\CanCreateUser;
|
||||
use App\Classes\Modules\Accounts\Services\CreatesUser;
|
||||
use App\Classes\Modules\Accounts\DataTransferObjects\UserObject;
|
||||
use App\Http\Resources\UserResource;
|
||||
|
||||
use App\Classes\Modules\Companies\Standards\Rules\CanCreateCompany;
|
||||
use App\Classes\Modules\Companies\Services\CreatesCompany;
|
||||
use App\Classes\Modules\Companies\DataTransferObjects\CompanyObject;
|
||||
use App\Http\Resources\CompanyResource;
|
||||
|
||||
use App\Classes\Modules\Contacts\Standards\Rules\CanCreateContact;
|
||||
use App\Classes\Modules\Contacts\Services\CreatesContact;
|
||||
use App\Classes\Modules\Contacts\DataTransferObjects\ContactObject;
|
||||
use App\Http\Resources\ContactResource;
|
||||
|
||||
use App\Classes\Modules\CompanyEmployees\Standards\Rules\CanCreateCompanyEmployee;
|
||||
use App\Classes\Modules\CompanyEmployees\Services\CreatesCompanyEmployee;
|
||||
use App\Classes\Modules\CompanyEmployees\DataTransferObjects\CompanyEmployeeObject;
|
||||
use App\Http\Resources\CompanyEmployeeResource;
|
||||
|
||||
use ErrorException;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class CreateUserLogic extends AbstractControllerLogic
|
||||
{
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function notification():array {
|
||||
return [
|
||||
'title' => 'Created User',
|
||||
'message' => 'You have successfully created a new User'
|
||||
];
|
||||
}
|
||||
|
||||
/** @var CanCreateUser */
|
||||
private $canCreateUser;
|
||||
|
||||
/** @var CreatesUser */
|
||||
private $createsUser;
|
||||
|
||||
/** @var CanCreateCompany */
|
||||
private $canCreateCompany;
|
||||
|
||||
/** @var CreatesCompany */
|
||||
private $createsCompany;
|
||||
|
||||
/** @var CanCreateContact */
|
||||
private $canCreateContact;
|
||||
|
||||
/** @var CreatesContact */
|
||||
private $createsContact;
|
||||
|
||||
/** @var CanCreateCompanyEmployee */
|
||||
private $canCreateCompanyEmployee;
|
||||
|
||||
/** @var CreatesCompanyEmployee */
|
||||
private $createsCompanyEmployee;
|
||||
|
||||
/**
|
||||
* CreateUserControllerLogic constructor.
|
||||
* @param CanCreateUser $canCreateUser
|
||||
* @param CreatesUser $createsUser
|
||||
* @param CanCreateCompany $canCreateCompany
|
||||
* @param CreatesCompany $createsCompany
|
||||
* @param CanCreateContact $canCreateContact
|
||||
* @param CreatesContact $createsContact
|
||||
* @param CanCreateCompanyEmployee $canCreateCompanyEmployee
|
||||
* @param CreatesCompanyEmployee $createsCompanyEmployee
|
||||
*/
|
||||
public function __construct(
|
||||
CanCreateUser $canCreateUser,
|
||||
CreatesUser $createsUser,
|
||||
CanCreateCompany $canCreateCompany,
|
||||
CreatesCompany $createsCompany,
|
||||
CanCreateContact $canCreateContact,
|
||||
CreatesContact $createsContact,
|
||||
CanCreateCompanyEmployee $canCreateCompanyEmployee,
|
||||
CreatesCompanyEmployee $createsCompanyEmployee
|
||||
)
|
||||
{
|
||||
$this->canCreateUser = $canCreateUser;
|
||||
$this->createsUser = $createsUser;
|
||||
$this->canCreateCompany = $canCreateCompany;
|
||||
$this->createsCompany = $createsCompany;
|
||||
$this->canCreateContact = $canCreateContact;
|
||||
$this->createsContact = $createsContact;
|
||||
$this->canCreateCompanyEmployee = $canCreateCompanyEmployee;
|
||||
$this->createsCompanyEmployee = $createsCompanyEmployee;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Request $request
|
||||
* @return JsonResponse
|
||||
* @throws ErrorException
|
||||
*/
|
||||
public function logic(Request $request) : JsonResponse
|
||||
{
|
||||
try {
|
||||
DB::beginTransaction();
|
||||
|
||||
$user_object = new UserObject(
|
||||
$request->input('name'),
|
||||
$request->input('email'),
|
||||
$request->input('password'),
|
||||
$request->input('password_confirmation'),
|
||||
2,
|
||||
9
|
||||
);
|
||||
|
||||
$this->canCreateUser->passes($user_object);
|
||||
$user_query = $this->createsUser->execute($user_object);
|
||||
|
||||
$company_object = new CompanyObject(
|
||||
$request->input('company_name'),
|
||||
$request->input('company_reference'),
|
||||
1
|
||||
);
|
||||
|
||||
$this->canCreateCompany->passes($company_object);
|
||||
$company_query = $this->createsCompany->execute($company_object);
|
||||
|
||||
$contact_object = new ContactObject(
|
||||
1,
|
||||
$company_query->id,
|
||||
$request->input('contact_reference'),
|
||||
$request->input('phone'),
|
||||
$request->input('contact_email'),
|
||||
$request->input('wechat_id')
|
||||
);
|
||||
|
||||
$this->canCreateContact->passes($contact_object);
|
||||
$contact_query = $this->createsContact->execute($contact_object);
|
||||
|
||||
|
||||
$company_employee_object = new CompanyEmployeeObject(
|
||||
$company_query->id,
|
||||
$user_query->id
|
||||
);
|
||||
|
||||
$this->canCreateCompanyEmployee->passes($company_employee_object);
|
||||
$company_employee_query = $this->createsCompanyEmployee->execute($user_query, $company_employee_object);
|
||||
|
||||
DB::commit();
|
||||
|
||||
return $this->resourceResponse(new UserResource($user_query));
|
||||
|
||||
} catch (\Exception $exception) {
|
||||
throw new ErrorException($exception->getMessage(), $exception->getCode());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Accounts\DataTransferObjects;
|
||||
|
||||
use App\Classes\Interfaces\DataTransferObject;
|
||||
|
||||
class UserObject implements DataTransferObject
|
||||
{
|
||||
/** @var string|null */
|
||||
private $name;
|
||||
|
||||
/** @var string|null */
|
||||
private $email;
|
||||
|
||||
/** @var string|null */
|
||||
private $password;
|
||||
|
||||
/** @var string|null */
|
||||
private $password_confirmation;
|
||||
|
||||
/** @var int */
|
||||
private $type;
|
||||
|
||||
/** @var status */
|
||||
private $status;
|
||||
|
||||
/**
|
||||
* UserObject constructor.
|
||||
* @param string|null $name
|
||||
* @param string|null $email
|
||||
* @param string|null $password
|
||||
* @param string|null $password_confirmation
|
||||
* @param int $type
|
||||
* @param int $status
|
||||
*/
|
||||
public function __construct(
|
||||
?string $name,
|
||||
?string $email,
|
||||
?string $password,
|
||||
?string $password_confirmation,
|
||||
int $type,
|
||||
int $status
|
||||
)
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->email = $email;
|
||||
$this->password = $password;
|
||||
$this->password_confirmation = $password_confirmation;
|
||||
$this->type = $type;
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName(): ?string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEmail(): ?string
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPassword(): ?string
|
||||
{
|
||||
return $this->password;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPasswordConfirmation(): ?string
|
||||
{
|
||||
return $this->password_confirmation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getType(): int
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getStatus(): int
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Accounts\Services;
|
||||
|
||||
use App\Classes\General\Eloquent\AbstractUpdateRecord;
|
||||
use App\Classes\Modules\Accounts\DataTransferObjects\UserObject;
|
||||
use App\Models\User;
|
||||
|
||||
class CreatesUser extends AbstractUpdateRecord
|
||||
{
|
||||
/**
|
||||
* @param UserObject $object
|
||||
* @return \Illuminate\Database\Eloquent\Model
|
||||
* @throws \App\Classes\Exceptions\MalformedRequestException
|
||||
*/
|
||||
public function execute(UserObject $object) {
|
||||
$model = new User();
|
||||
$model->name = $object->getName();
|
||||
$model->email = $object->getEmail();
|
||||
$model->password = bcrypt($object->getPassword());
|
||||
$model->type = $object->getType();
|
||||
$model->status = $object->getStatus();
|
||||
|
||||
return $this->handler($model);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Accounts\Standards\Rules;
|
||||
|
||||
use App\Classes\General\Abstracts\AbstractRule;
|
||||
use App\Classes\Modules\Accounts\DataTransferObjects\UserObject;
|
||||
use App\Classes\Modules\Accounts\Standards\Validators\UserValidation;
|
||||
|
||||
class CanCreateUser extends AbstractRule
|
||||
{
|
||||
|
||||
/** @var UserValidation */
|
||||
private $userValidation;
|
||||
|
||||
/**
|
||||
* CanCreateUser constructor.
|
||||
* @param UserValidation $userValidation
|
||||
*/
|
||||
public function __construct(UserValidation $userValidation)
|
||||
{
|
||||
$this->userValidation = $userValidation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
protected function authorized(): bool
|
||||
{
|
||||
// TODO Set Authorization rules
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param UserObject $object
|
||||
* @return bool
|
||||
* @throws \App\Classes\Exceptions\RequestValidationException
|
||||
*/
|
||||
protected function validators($object): bool
|
||||
{
|
||||
return $this->userValidation->validate($object);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param UserObject $object
|
||||
* @return bool
|
||||
*/
|
||||
protected function criteria($object): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Accounts\Standards\Validators;
|
||||
|
||||
use App\Classes\General\Abstracts\AbstractValidation;
|
||||
use App\Classes\Modules\Accounts\DataTransferObjects\UserObject;
|
||||
|
||||
class UserValidation extends AbstractValidation
|
||||
{
|
||||
/**
|
||||
* @param UserObject $object
|
||||
* @return array
|
||||
*/
|
||||
protected function data($object): array
|
||||
{
|
||||
return [
|
||||
'name' => $object->getName(),
|
||||
'email' => $object->getEmail(),
|
||||
'password' => $object->getPassword(),
|
||||
'password_confirmation' => $object->getPasswordConfirmation(),
|
||||
'type' => $object->getType(),
|
||||
'status' => $object->getStatus(),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function rules(): array
|
||||
{
|
||||
return [
|
||||
'name' => 'required',
|
||||
'email' => 'required|email|max:255|unique:users,email',
|
||||
'password' => 'required|min:6|confirmed',
|
||||
'type' => 'required',
|
||||
'status' => 'required'
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function messages(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Companies\DataTransferObjects;
|
||||
|
||||
use App\Classes\Interfaces\DataTransferObject;
|
||||
|
||||
class CompanyObject implements DataTransferObject
|
||||
{
|
||||
/** @var string|null */
|
||||
private $name;
|
||||
|
||||
/** @var string|null */
|
||||
private $reference;
|
||||
|
||||
/** @var int */
|
||||
private $type;
|
||||
|
||||
/**
|
||||
* CompanyObject constructor.
|
||||
* @param string|null $name
|
||||
* @param string|null $reference
|
||||
* @param string|null $type
|
||||
*/
|
||||
public function __construct(
|
||||
?string $name,
|
||||
?string $reference,
|
||||
?string $type
|
||||
)
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->reference = $reference;
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName(): ?string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getReference(): ?string
|
||||
{
|
||||
return $this->reference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getType(): int
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Companies\Services;
|
||||
|
||||
use App\Classes\General\Eloquent\AbstractUpdateRecord;
|
||||
use App\Classes\Modules\Companies\DataTransferObjects\CompanyObject;
|
||||
use App\Models\Company;
|
||||
|
||||
class CreatesCompany extends AbstractUpdateRecord
|
||||
{
|
||||
|
||||
/**
|
||||
* @param CompanyObject $object
|
||||
* @return \Illuminate\Database\Eloquent\Model
|
||||
* @throws \App\Classes\Exceptions\MalformedRequestException
|
||||
*/
|
||||
public function execute(CompanyObject $object)
|
||||
{
|
||||
$model = new Company();
|
||||
$model->name = $object->getName();
|
||||
$model->reference = $object->getReference();
|
||||
$model->type = $object->getType();
|
||||
|
||||
return $this->handler($model);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Companies\Standards\Rules;
|
||||
|
||||
use App\Classes\General\Abstracts\AbstractRule;
|
||||
use App\Classes\Modules\Companies\DataTransferObjects\UserObject;
|
||||
use App\Classes\Modules\Companies\Standards\Validators\CompanyValidation;
|
||||
|
||||
class CanCreateCompany extends AbstractRule
|
||||
{
|
||||
/** @var CompanyValidation */
|
||||
private $companyValidation;
|
||||
|
||||
/**
|
||||
* CanCreateUser constructor.
|
||||
* @param CompanyValidation $companyValidation
|
||||
*/
|
||||
public function __construct(CompanyValidation $companyValidation)
|
||||
{
|
||||
$this->companyValidation = $companyValidation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
protected function authorized(): bool
|
||||
{
|
||||
// TODO Set Authorization rules
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param UserObject $object
|
||||
* @return bool
|
||||
* @throws \App\Classes\Exceptions\RequestValidationException
|
||||
*/
|
||||
protected function validators($object): bool
|
||||
{
|
||||
return $this->companyValidation->validate($object);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param UserObject $object
|
||||
* @return bool
|
||||
*/
|
||||
protected function criteria($object): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Companies\Standards\Validators;
|
||||
|
||||
use App\Classes\General\Abstracts\AbstractValidation;
|
||||
use App\Classes\Modules\Companies\DataTransferObjects\CompanyObject;
|
||||
|
||||
class CompanyValidation extends AbstractValidation
|
||||
{
|
||||
/**
|
||||
* @param CompanyObject $object
|
||||
* @return array
|
||||
*/
|
||||
protected function data($object): array
|
||||
{
|
||||
return [
|
||||
'company_name' => $object->getName(),
|
||||
'company_reference' => $object->getReference(),
|
||||
'type' => $object->getType()
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function rules(): array
|
||||
{
|
||||
return [
|
||||
'company_name' => 'required',
|
||||
'company_reference' => 'required',
|
||||
'type' => 'required'
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function messages(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\CompanyEmployees\DataTransferObjects;
|
||||
|
||||
use App\Classes\Interfaces\DataTransferObject;
|
||||
|
||||
class CompanyEmployeeObject implements DataTransferObject
|
||||
{
|
||||
/** @var int|null */
|
||||
private $company_id;
|
||||
|
||||
/** @var int|null */
|
||||
private $user_id;
|
||||
|
||||
/**
|
||||
* CompanyObject constructor.
|
||||
* @param int|null $company_id
|
||||
* @param int|null $user_id
|
||||
*/
|
||||
public function __construct(
|
||||
?int $company_id,
|
||||
?int $user_id
|
||||
)
|
||||
{
|
||||
$this->company_id = $company_id;
|
||||
$this->user_id = $user_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getCompanyId(): ?int
|
||||
{
|
||||
return $this->company_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getUserId(): ?int
|
||||
{
|
||||
return $this->user_id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\CompanyEmployees\Services;
|
||||
|
||||
use App\Classes\General\Eloquent\AbstractUpdateRecord;
|
||||
use App\Classes\Modules\CompanyEmployees\DataTransferObjects\CompanyEmployeeObject;
|
||||
use App\Models\User;
|
||||
|
||||
class CreatesCompanyEmployee extends AbstractUpdateRecord
|
||||
{
|
||||
/**
|
||||
* @param CompanyEmployeeObject $object
|
||||
* @return \Illuminate\Database\Eloquent\Model
|
||||
* @throws \App\Classes\Exceptions\MalformedRequestException
|
||||
*/
|
||||
public function execute(User $model, CompanyEmployeeObject $object)
|
||||
{
|
||||
$model->company()->sync($object->getCompanyId());
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\CompanyEmployees\Standards\Rules;
|
||||
|
||||
|
||||
use App\Classes\General\Abstracts\AbstractRule;
|
||||
use App\Classes\Modules\CompanyEmployees\DataTransferObjects\CompanyEmployeeObject;
|
||||
use App\Classes\Modules\CompanyEmployees\Standards\Validators\CompanyEmployeeValidation;
|
||||
|
||||
class CanCreateCompanyEmployee extends AbstractRule
|
||||
{
|
||||
|
||||
/** @var CompanyEmployeeValidation */
|
||||
private $companyEmployeeValidation;
|
||||
|
||||
/**
|
||||
* CanCreateAddress constructor.
|
||||
* @param CompanyEmployeeValidation $companyEmployeeValidation
|
||||
*/
|
||||
public function __construct(CompanyEmployeeValidation $companyEmployeeValidation)
|
||||
{
|
||||
$this->companyEmployeeValidation = $companyEmployeeValidation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
protected function authorized(): bool
|
||||
{
|
||||
// TODO Set Authorization rules
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CompanyEmployeeObject $object
|
||||
* @return bool
|
||||
* @throws \App\Classes\Exceptions\RequestValidationException
|
||||
*/
|
||||
protected function validators($object): bool
|
||||
{
|
||||
return $this->companyEmployeeValidation->validate($object);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CompanyEmployeeObject $object
|
||||
* @return bool
|
||||
*/
|
||||
protected function criteria($object): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\CompanyEmployees\Standards\Validators;
|
||||
|
||||
use App\Classes\General\Abstracts\AbstractValidation;
|
||||
use App\Classes\Modules\CompanyEmployees\DataTransferObjects\CompanyEmployeeObject;
|
||||
|
||||
class CompanyEmployeeValidation extends AbstractValidation
|
||||
{
|
||||
/**
|
||||
* @param CompanyEmployeeObject $object
|
||||
* @return array
|
||||
*/
|
||||
protected function data($object): array
|
||||
{
|
||||
return [
|
||||
'company_id' => $object->getCompanyId(),
|
||||
'user_id' => $object->getUserId(),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function rules(): array
|
||||
{
|
||||
return [
|
||||
'company_id' => 'required',
|
||||
'user_id' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function messages(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Contacts\DataTransferObjects;
|
||||
|
||||
use App\Classes\Interfaces\DataTransferObject;
|
||||
|
||||
class ContactObject implements DataTransferObject
|
||||
{
|
||||
/** @var int|null */
|
||||
private $country_id;
|
||||
|
||||
/** @var int|null */
|
||||
private $company_id;
|
||||
|
||||
/** @var string|null */
|
||||
private $reference;
|
||||
|
||||
/** @var string|null */
|
||||
private $phone;
|
||||
|
||||
/** @var string|null */
|
||||
private $email;
|
||||
|
||||
/** @var string|null */
|
||||
private $wechat_id;
|
||||
|
||||
/**
|
||||
* CompanyObject constructor.
|
||||
* @param int|null $country_id
|
||||
* @param int|null $company_id
|
||||
* @param string|null $reference
|
||||
* @param string|null $phone
|
||||
* @param string|null $email
|
||||
* @param string|null $wechat_id
|
||||
*/
|
||||
public function __construct(
|
||||
?int $country_id,
|
||||
?int $company_id,
|
||||
?string $reference,
|
||||
?string $phone,
|
||||
?string $email,
|
||||
?string $wechat_id
|
||||
)
|
||||
{
|
||||
$this->country_id = $country_id;
|
||||
$this->company_id = $company_id;
|
||||
$this->reference = $reference;
|
||||
$this->phone = $phone;
|
||||
$this->email = $email;
|
||||
$this->wechat_id = $wechat_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getCountryId(): ?int
|
||||
{
|
||||
return $this->country_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getCompanyId(): ?int
|
||||
{
|
||||
return $this->company_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getReference(): ?string
|
||||
{
|
||||
return $this->reference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPhone(): ?string
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getEmail(): ?string
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getWeChatId(): ?string
|
||||
{
|
||||
return $this->wechat_id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Contacts\Services;
|
||||
|
||||
use App\Classes\General\Eloquent\AbstractUpdateRecord;
|
||||
use App\Classes\Modules\Contacts\DataTransferObjects\ContactObject;
|
||||
use App\Models\Contact;
|
||||
|
||||
class CreatesContact extends AbstractUpdateRecord
|
||||
{
|
||||
/**
|
||||
* @param ContactObject $object
|
||||
* @return \Illuminate\Database\Eloquent\Model
|
||||
* @throws \App\Classes\Exceptions\MalformedRequestException
|
||||
*/
|
||||
public function execute(ContactObject $object)
|
||||
{
|
||||
$model = new Contact();
|
||||
$model->country_id = $object->getCountryId();
|
||||
$model->company_id = $object->getCompanyId();
|
||||
$model->reference = $object->getReference();
|
||||
$model->phone = $object->getPhone();
|
||||
$model->email = $object->getEmail();
|
||||
$model->wechat_id = $object->getWechatId();
|
||||
|
||||
return $this->handler($model);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Contacts\Standards\Rules;
|
||||
|
||||
|
||||
use App\Classes\General\Abstracts\AbstractRule;
|
||||
use App\Classes\Modules\Contacts\DataTransferObjects\ContactObject;
|
||||
use App\Classes\Modules\Contacts\Standards\Validators\ContactValidation;
|
||||
|
||||
class CanCreateContact extends AbstractRule
|
||||
{
|
||||
|
||||
/** @var ContactValidation */
|
||||
private $contactValidation;
|
||||
|
||||
/**
|
||||
* CanCreateAddress constructor.
|
||||
* @param ContactValidation $contactValidation
|
||||
*/
|
||||
public function __construct(ContactValidation $contactValidation)
|
||||
{
|
||||
$this->contactValidation = $contactValidation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
protected function authorized(): bool
|
||||
{
|
||||
// TODO Set Authorization rules
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ContactObject $object
|
||||
* @return bool
|
||||
* @throws \App\Classes\Exceptions\RequestValidationException
|
||||
*/
|
||||
protected function validators($object): bool
|
||||
{
|
||||
return $this->contactValidation->validate($object);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ContactObject $object
|
||||
* @return bool
|
||||
*/
|
||||
protected function criteria($object): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Contacts\Standards\Validators;
|
||||
|
||||
use App\Classes\General\Abstracts\AbstractValidation;
|
||||
use App\Classes\Modules\Contacts\DataTransferObjects\ContactObject;
|
||||
|
||||
class ContactValidation extends AbstractValidation
|
||||
{
|
||||
/**
|
||||
* @param ContactObject $object
|
||||
* @return array
|
||||
*/
|
||||
protected function data($object): array
|
||||
{
|
||||
return [
|
||||
'country_id' => $object->getCountryId(),
|
||||
'company_id' => $object->getCompanyId(),
|
||||
'contact_reference' => $object->getReference(),
|
||||
'phone' => $object->getPhone(),
|
||||
'contact_email' => $object->getEmail(),
|
||||
'wechat_id' => $object->getWechatId()
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function rules(): array
|
||||
{
|
||||
return [
|
||||
'country_id' => 'required',
|
||||
'company_id' => 'required',
|
||||
'contact_reference' => 'required',
|
||||
'phone' => 'required',
|
||||
'contact_email' => '',
|
||||
'wechat_id' => ''
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function messages(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Accounts;
|
||||
|
||||
use App\Classes\Modules\Accounts\ControllersLogic\CreateUserLogic;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class CreateUserController
|
||||
{
|
||||
/**
|
||||
* @param Request $request
|
||||
* @param CreateUserLogic $logic
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function create(Request $request, CreateUserLogic $logic): JsonResponse {
|
||||
return $logic->execute($request);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class CompanyEmployeeResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return array
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
return [
|
||||
'company_id' => $this->company_id,
|
||||
'user_id' => $this->user_id
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class CompanyResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return array
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'name' => $this->name,
|
||||
'reference' => $this->reference,
|
||||
'type' => (int) $this->type,
|
||||
'status' => (int) $this->status
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class ContactResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return array
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'country_id' => $this->country_id,
|
||||
'company_id' => $this->company_id,
|
||||
'reference' => $this->reference,
|
||||
'phone' => $this->phone,
|
||||
'email' => $this->email,
|
||||
'wechat_id' => $this->wechat_id,
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class UserResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return array
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'name' => $this->name,
|
||||
'email' => $this->email,
|
||||
'type' => (int) $this->type,
|
||||
'status' => (int) $this->status
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
/**
|
||||
* Class Company
|
||||
* @package App\Models
|
||||
* @version August 4, 2020, 4:36 am
|
||||
*
|
||||
* @property \App\Models\Country country_id
|
||||
* @property \App\Models\State state_id
|
||||
* @property \App\Models\District district_id
|
||||
* @property string postcode
|
||||
* @property string street_one
|
||||
* @property string street_two
|
||||
* @property integer billing_type
|
||||
*/
|
||||
class Company extends AbstractModel
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'companies';
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||
|
||||
/**
|
||||
* Class CompanyEmployee
|
||||
* @package App\Models
|
||||
* @version August 4, 2020, 4:36 am
|
||||
*
|
||||
* @property \App\Models\Company company_id
|
||||
* @property \App\Models\User user_id
|
||||
*/
|
||||
class CompanyEmployee extends AbstractModel
|
||||
{
|
||||
protected $table = 'company_employee';
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
**/
|
||||
public function company(): HasOne
|
||||
{
|
||||
return $this->hasOne(Company::class, 'company_id', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
**/
|
||||
public function user(): HasOne
|
||||
{
|
||||
return $this->hasOne(User::class, 'user_id', 'id');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
/**
|
||||
* Class Contact
|
||||
* @package App\Models
|
||||
* @version August 4, 2020, 4:36 am
|
||||
*
|
||||
* @property \App\Models\Country country_id
|
||||
* @property \App\Models\Company company_id
|
||||
* @property string reference
|
||||
* @property string phone
|
||||
* @property string email
|
||||
* @property string wechat_id
|
||||
*/
|
||||
class Contact extends AbstractModel
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'contacts';
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
**/
|
||||
public function company(): HasOne
|
||||
{
|
||||
return $this->hasOne(Company::class, 'company_id', 'id');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
/**
|
||||
* Class Country
|
||||
* @package App\Models
|
||||
* @version August 4, 2020, 4:36 am
|
||||
*
|
||||
* @property string name
|
||||
* @property string short_code
|
||||
* @property string phone_code
|
||||
*/
|
||||
class Country extends AbstractModel
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'countries';
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
/**
|
||||
* Class Currency
|
||||
* @package App\Models
|
||||
* @version August 4, 2020, 4:36 am
|
||||
*
|
||||
* @property \App\Models\Country country_id
|
||||
* @property string name
|
||||
* @property string short_code
|
||||
* @property string symbol
|
||||
*/
|
||||
|
||||
class Currency extends AbstractModel
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'currencies';
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
**/
|
||||
public function country(): HasOne
|
||||
{
|
||||
return $this->hasOne(Country::class, 'country_id', 'id');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
/**
|
||||
* Class District
|
||||
* @package App\Models
|
||||
* @version August 4, 2020, 4:36 am
|
||||
*
|
||||
* @property \App\Models\Country country_id
|
||||
* @property \App\Models\State state_id
|
||||
* @property string name
|
||||
* @property text postcode
|
||||
*/
|
||||
class District extends AbstractModel
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'districts';
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
**/
|
||||
public function country(): HasOne
|
||||
{
|
||||
return $this->hasOne(Country::class, 'country_id', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
**/
|
||||
public function state(): HasOne
|
||||
{
|
||||
return $this->hasOne(State::class, 'state_id', 'id');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
/**
|
||||
* Class State
|
||||
* @package App\Models
|
||||
* @version August 4, 2020, 4:36 am
|
||||
*
|
||||
* @property \App\Models\Country country_id
|
||||
* @property string name
|
||||
*/
|
||||
class State extends AbstractModel
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'states';
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
**/
|
||||
public function country(): HasOne
|
||||
{
|
||||
return $this->hasOne(Country::class, 'country_id', 'id');
|
||||
}
|
||||
}
|
||||
@@ -62,4 +62,12 @@ class User extends AbstractModel implements
|
||||
return $this->hasMany(Order::class, 'user_id', 'id');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return belongsToMany
|
||||
*/
|
||||
public function company(): belongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Company::class, 'company_employee');
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+6494
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,112 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreatePermissionTables extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$tableNames = config('permission.table_names');
|
||||
$columnNames = config('permission.column_names');
|
||||
|
||||
if (empty($tableNames)) {
|
||||
throw new \Exception('Error: config/permission.php not found and defaults could not be merged. Please publish the package configuration before proceeding.');
|
||||
}
|
||||
|
||||
Schema::create($tableNames['permissions'], function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('name');
|
||||
$table->string('guard_name');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create($tableNames['roles'], function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('name');
|
||||
$table->string('guard_name');
|
||||
$table->integer('type')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create($tableNames['model_has_permissions'], function (Blueprint $table) use ($tableNames, $columnNames) {
|
||||
$table->unsignedBigInteger('permission_id');
|
||||
|
||||
$table->string('model_type');
|
||||
$table->unsignedBigInteger($columnNames['model_morph_key']);
|
||||
$table->index([$columnNames['model_morph_key'], 'model_type'], 'model_has_permissions_model_id_model_type_index');
|
||||
|
||||
$table->foreign('permission_id')
|
||||
->references('id')
|
||||
->on($tableNames['permissions'])
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->primary(['permission_id', $columnNames['model_morph_key'], 'model_type'],
|
||||
'model_has_permissions_permission_model_type_primary');
|
||||
});
|
||||
|
||||
Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames, $columnNames) {
|
||||
$table->unsignedBigInteger('role_id');
|
||||
|
||||
$table->string('model_type');
|
||||
$table->unsignedBigInteger($columnNames['model_morph_key']);
|
||||
$table->index([$columnNames['model_morph_key'], 'model_type'], 'model_has_roles_model_id_model_type_index');
|
||||
|
||||
$table->foreign('role_id')
|
||||
->references('id')
|
||||
->on($tableNames['roles'])
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->primary(['role_id', $columnNames['model_morph_key'], 'model_type'],
|
||||
'model_has_roles_role_model_type_primary');
|
||||
});
|
||||
|
||||
Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) {
|
||||
$table->unsignedBigInteger('permission_id');
|
||||
$table->unsignedBigInteger('role_id');
|
||||
|
||||
$table->foreign('permission_id')
|
||||
->references('id')
|
||||
->on($tableNames['permissions'])
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('role_id')
|
||||
->references('id')
|
||||
->on($tableNames['roles'])
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->primary(['permission_id', 'role_id'], 'role_has_permissions_permission_id_role_id_primary');
|
||||
});
|
||||
|
||||
app('cache')
|
||||
->store(config('permission.cache.store') != 'default' ? config('permission.cache.store') : null)
|
||||
->forget(config('permission.cache.key'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
$tableNames = config('permission.table_names');
|
||||
|
||||
if (empty($tableNames)) {
|
||||
throw new \Exception('Error: config/permission.php not found and defaults could not be merged. Please publish the package configuration before proceeding, or drop the tables manually.');
|
||||
}
|
||||
DB::statement('SET FOREIGN_KEY_CHECKS = 0');
|
||||
Schema::drop($tableNames['role_has_permissions']);
|
||||
Schema::drop($tableNames['model_has_roles']);
|
||||
Schema::drop($tableNames['model_has_permissions']);
|
||||
Schema::drop($tableNames['roles']);
|
||||
Schema::drop($tableNames['permissions']);
|
||||
DB::statement('SET FOREIGN_KEY_CHECKS = 1');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateJobsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('jobs', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('queue')->index();
|
||||
$table->longText('payload');
|
||||
$table->unsignedTinyInteger('attempts');
|
||||
$table->unsignedInteger('reserved_at')->nullable();
|
||||
$table->unsignedInteger('available_at');
|
||||
$table->unsignedInteger('created_at');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('jobs');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateFailedJobsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('failed_jobs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->text('connection');
|
||||
$table->text('queue');
|
||||
$table->longText('payload');
|
||||
$table->longText('exception');
|
||||
$table->timestamp('failed_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('failed_jobs');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCountriesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('countries', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('short_code')->nullable();
|
||||
$table->string('phone_code')->nullable();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('countries');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCurrenciesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('currencies', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->bigInteger('country_id')->unsigned()->nullable();
|
||||
$table->foreign('country_id')->references('id')->on('countries')->onDelete('cascade');
|
||||
$table->string('name')->nullable();
|
||||
$table->string('short_code')->nullable();
|
||||
$table->string('symbol')->nullable();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('currencies');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateStatesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('states', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->bigInteger('country_id')->unsigned()->nullable();
|
||||
$table->foreign('country_id')->references('id')->on('countries')->onDelete('cascade');
|
||||
$table->string('name')->nullable();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('states');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDistrictsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('districts', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->bigInteger('country_id')->unsigned()->nullable();
|
||||
$table->foreign('country_id')->references('id')->on('countries')->onDelete('cascade');
|
||||
$table->bigInteger('state_id')->unsigned()->nullable();
|
||||
$table->foreign('state_id')->references('id')->on('states')->onDelete('cascade');
|
||||
$table->string('name')->nullable();
|
||||
$table->text('postcode')->nullable();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('districts');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCompaniesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('companies', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('reference')->nullable();
|
||||
$table->integer('type')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('companies');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateContactsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('contacts', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->bigInteger('country_id')->unsigned()->nullable();
|
||||
$table->foreign('country_id')->references('id')->on('countries')->onDelete('cascade');
|
||||
$table->bigInteger('company_id')->unsigned()->nullable();
|
||||
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade');
|
||||
$table->string('reference')->nullable();
|
||||
$table->string('phone')->nullable();
|
||||
$table->string('email')->nullable();
|
||||
$table->string('wechat_id')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('contacts');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateAddressesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('addresses', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->bigInteger('country_id')->unsigned()->nullable();
|
||||
$table->foreign('country_id')->references('id')->on('countries')->onDelete('cascade');
|
||||
$table->bigInteger('company_id')->unsigned()->nullable();
|
||||
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade');
|
||||
$table->bigInteger('state_id')->unsigned()->nullable();
|
||||
$table->foreign('state_id')->references('id')->on('states')->onDelete('cascade');
|
||||
$table->bigInteger('district_id')->unsigned()->nullable();
|
||||
$table->foreign('district_id')->references('id')->on('districts')->onDelete('cascade');
|
||||
$table->string('postcode')->nullable();
|
||||
$table->string('street_one')->nullable();
|
||||
$table->string('street_two')->nullable();
|
||||
$table->integer('billing_type')->nullable();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('addresses');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCompanyEmployeesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('company_employee', function (Blueprint $table) {
|
||||
$table->bigInteger('company_id')->unsigned();
|
||||
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade');
|
||||
$table->bigInteger('user_id')->unsigned();
|
||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
$table->primary(['company_id', 'user_id']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('company_employee');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class CountriesTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('countries')->insert([
|
||||
[
|
||||
'id' => 1,
|
||||
'name' => 'Malaysia',
|
||||
'short_code' => 'MY',
|
||||
'phone_code' => '60',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class CurrenciesTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('currencies')->insert([
|
||||
[
|
||||
'id' => 1,
|
||||
'country_id' => 1,
|
||||
'name' => 'Ringgit',
|
||||
'short_code' => 'MYR',
|
||||
'symbol' => 'RM',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s')
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,478 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class DistrictsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$district_seeder_list = [
|
||||
[1, 1, 1, 'Ayer Baloi', json_encode(['82100']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[2, 1, 1, 'Ayer Hitam', json_encode(['86100']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[3, 1, 1, 'Ayer Tawar 2', json_encode(['81920']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[4, 1, 1, 'Ayer Tawar 3', json_encode(['81920']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[5, 1, 1, 'Ayer Tawar 4', json_encode(['81920']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[6, 1, 1, 'Ayer Tawar 5', json_encode(['81920']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[7, 1, 1, 'Bandar Penawar', json_encode(['81930']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[8, 1, 1, 'Bandar Tenggara', json_encode(['81440']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[9, 1, 1, 'Batu Anam', json_encode(['85100']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[10, 1, 1, 'Batu Pahat', json_encode(['83000']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[11, 1, 1, 'Bekok', json_encode(['86500']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[12, 1, 1, 'Benut', json_encode(['82200']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[13, 1, 1, 'Bukit Gambir', json_encode(['84800']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[14, 1, 1, 'Bukit Pasir', json_encode(['84300']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[15, 1, 1, 'Chaah', json_encode(['85400']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[16, 1, 1, 'Endau', json_encode(['86900']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[17, 1, 1, 'Gelang Patah', json_encode(['81550']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[18, 1, 1, 'Gerisek', json_encode(['84700']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[19, 1, 1, 'Gugusan Taib Andak', json_encode(['81450']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[20, 1, 1, 'Jementah', json_encode(['85200']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[21, 1, 1, 'Johor Bahru', json_encode(['80000','80050','80100','80150','80200','80250','80300','80350','80400','80500','80506','80508','80516','80519','80534','80536','80542','80546','80558','80560','80564','80568','80578','80584','80586','80590','80592','80594','80596','80600','80604','80608','80620','80622','80628','80644','80648','80662','80664','80668','80670','80672','80673','80676','80700','80710','80720','80730','80900','80902','80904','80906','80908','80988','80990','81000','81100','81200','81300','81310']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[22, 1, 1, 'Kahang', json_encode(['86700']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[23, 1, 1, 'Kluang', json_encode(['86000','86300']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[24, 1, 1, 'Kota Tinggi', json_encode(['81900']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[25, 1, 1, 'Kukup', json_encode(['82300']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[26, 1, 1, 'Kulai', json_encode(['81000']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[27, 1, 1, 'Labis', json_encode(['85300']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[28, 1, 1, 'Layang-Layang', json_encode(['81850']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[29, 1, 1, 'Masai', json_encode(['81750','81750']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[30, 1, 1, 'Mersing', json_encode(['86800','86810']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[31, 1, 1, 'Muar', json_encode(['84000','84200']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[32, 1, 1, 'Nusajaya', json_encode(['79000','79100','79150','79200','79250','79502','79503','79504','79505','79511','79513','79514','79517','79518','79520','79521','79523','79532','79538','79540','79546','79548','79550','79552','79555','79570','79575','79576','79592','79601','79603','79605','79606','79612','79626','79630','79632','79646','79658','79660','79680','79681','79683']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[33, 1, 1, 'Pagoh', json_encode(['84600']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[34, 1, 1, 'Paloh', json_encode(['86600']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[35, 1, 1, 'Panchor', json_encode(['84500']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[36, 1, 1, 'Parit Jawa', json_encode(['84150']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[37, 1, 1, 'Parit Raja', json_encode(['86400']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[38, 1, 1, 'Parit Sulong', json_encode(['83500']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[39, 1, 1, 'Pasir Gudang', json_encode(['81700']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[40, 1, 1, 'Pekan Nenas', json_encode(['81500']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[41, 1, 1, 'Pengerang', json_encode(['81600']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[42, 1, 1, 'Pontian', json_encode(['82000']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[43, 1, 1, 'Rengam', json_encode(['86300']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[44, 1, 1, 'Rengit', json_encode(['83100']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[45, 1, 1, 'Segamat', json_encode(['85000']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[46, 1, 1, 'Semerah', json_encode(['83600']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[47, 1, 1, 'Senai', json_encode(['81400']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[48, 1, 1, 'Senggarang', json_encode(['83200']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[49, 1, 1, 'Seri Gading', json_encode(['83300']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[50, 1, 1, 'Seri Medan', json_encode(['83400']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[51, 1, 1, 'Simpang Rengam', json_encode(['86200']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[52, 1, 1, 'Sri Gading', json_encode(['83300']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[53, 1, 1, 'Sri Medan', json_encode(['83400']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[54, 1, 1, 'Sungai Mati', json_encode(['81500','84400']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[55, 1, 1, 'Tangkak', json_encode(['84000','84900']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[56, 1, 1, 'Ulu Tiram', json_encode(['81800']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[57, 1, 1, 'Yong Peng', json_encode(['83700']), 1, '2020-05-06 02:08:57', '2020-05-06 02:08:57'],
|
||||
[58, 1, 2, 'Alor Setar', json_encode(['05000','05050','05100','05150','05200','05250','05300','05350','05400','05460','05500','05502','05503','05504','05505','05506','05508','05512','05514','05516','05517','05518','05520','05532','05534','05536','05538','05550','05551','05552','05556','05558','05560','05564','05576','05578','05580','05582','05586','05590','05592','05594','05600','05604','05610','05612','05614','05620','05621','05622','05626','05628','05630','05632','05644','05660','05661','05664','05670','05672','05673','05674','05675','05676','05680','05690','05696','05700','05710','05720','05990','06250','06550','06570','06660']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[59, 1, 2, 'Alor Star', json_encode(['05150','05350','05400','05460','06250','06550']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[60, 1, 2, 'Ayer Hitam', json_encode(['06150']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[61, 1, 2, 'Baling', json_encode(['09100']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[62, 1, 2, 'Bandar Baharu', json_encode(['34950']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[63, 1, 2, 'Bandar Bahru', json_encode(['14290','14390']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[64, 1, 2, 'Bedong', json_encode(['08100','08110']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[65, 1, 2, 'Bukit Kayu Hitam', json_encode(['06050']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[66, 1, 2, 'Changloon', json_encode(['06010']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[67, 1, 2, 'Gurun', json_encode(['08300','08330','08800']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[68, 1, 2, 'Jeniang', json_encode(['08320','08700']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[69, 1, 2, 'Jitra', json_encode(['06000','06007','06009']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[70, 1, 2, 'Karangan', json_encode(['09700']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[71, 1, 2, 'Kepala Batas', json_encode(['06200','06207','06209']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[72, 1, 2, 'Kodiang', json_encode(['06100']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[73, 1, 2, 'Kota Kuala Muda', json_encode(['08500','08507','08509']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[74, 1, 2, 'Kota Sarang Semut', json_encode(['06800']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[75, 1, 2, 'Kuala Kedah', json_encode(['06600']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[76, 1, 2, 'Kuala Ketil', json_encode(['09300','09310']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[77, 1, 2, 'Kuala Nerang', json_encode(['06300']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[78, 1, 2, 'Kuala Pegang', json_encode(['09110']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[79, 1, 2, 'Kulim', json_encode(['09000','09007','09009','09010','09020']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[80, 1, 2, 'Kupang', json_encode(['09200']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[81, 1, 2, 'Langgar', json_encode(['06500','06507','06509']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[82, 1, 2, 'Langkawi', json_encode(['07000','07007','07009']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[83, 1, 2, 'Lunas', json_encode(['09600']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[84, 1, 2, 'Merbok', json_encode(['08400','08407','08409']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[85, 1, 2, 'Padang Serai', json_encode(['09400','09410']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[86, 1, 2, 'Pendang', json_encode(['06400','06700','06707','06709','06710','06720','06750']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[87, 1, 2, 'Pokok Sena', json_encode(['06350','06400']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[88, 1, 2, 'Serdang', json_encode(['09800','09810']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[89, 1, 2, 'Sik', json_encode(['08200','08210','08340']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[90, 1, 2, 'Simpang Empat', json_encode(['06650']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[91, 1, 2, 'Sungai Petani', json_encode(['08000','08007','08009','08010','08600']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[92, 1, 2, 'Universiti Utara Malaysia', json_encode(['06010']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[93, 1, 2, 'Yan', json_encode(['06900','06910']), 1, '2020-05-06 02:08:58', '2020-05-06 02:08:58'],
|
||||
[94, 1, 3, 'Ayer Lanas', json_encode(['17700']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[95, 1, 3, 'Bachok', json_encode(['16020','16030','16050','16060','16070','16090','16300','16310','16320']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[96, 1, 3, 'Cherang Ruku', json_encode(['16700']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[97, 1, 3, 'Dabong', json_encode(['18200']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[98, 1, 3, 'Gua Musang', json_encode(['18300']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[99, 1, 3, 'Jeli', json_encode(['17600']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[100, 1, 3, 'Kem Desa Pahlawan', json_encode(['16500']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[101, 1, 3, 'Ketereh', json_encode(['16450']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[102, 1, 3, 'Kota Bahru', json_encode(['16100']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[103, 1, 3, 'Kota Bharu', json_encode(['15000','15050','15100','15150','15159','15200','15300','15350','15400','15500','15502','15503','15504','15505','15506','15508','15512','15514','15516','15517','15518','15519','15520','15524','15529','15532','15534','15536','15538','15540','15546','15548','15550','15551','15556','15558','15560','15564','15570','15572','15576','15578','15582','15586','15590','15592','15594','15596','15600','15604','15608','15609','15612','15614','15616','15622','15623','15626','15628','15630','15632','15634','15644','15646','15648','15658','15660','15661','15664','15670','15672','15673','15674','15676','15680','15690','15710','15720','15730','15740','15988','15990','16010','16020','16100','16109','16150']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[104, 1, 3, 'Kuala Balah', json_encode(['17610']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[105, 1, 3, 'Kuala Krai', json_encode(['18000','18050']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[106, 1, 3, 'Machang', json_encode(['18500']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[107, 1, 3, 'Melor', json_encode(['16400']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[108, 1, 3, 'Pasir Mas', json_encode(['17000','17007','17009','17010','17020','17030','17040','17050','17060','17070']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[109, 1, 3, 'Pasir Puteh', json_encode(['16800','16800']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[110, 1, 3, 'Pulai Chondong', json_encode(['16600']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[111, 1, 3, 'Rantau Panjang', json_encode(['17200']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[112, 1, 3, 'Selising', json_encode(['16810']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[113, 1, 3, 'Tanah Merah', json_encode(['17500','17507','17509','17510']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[114, 1, 3, 'Temangan', json_encode(['18400']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[115, 1, 3, 'Tumpat', json_encode(['16080','16200','16210']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[116, 1, 3, 'Wakaf Bharu', json_encode(['16040','16250']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[117, 1, 4, 'Batu Caves', json_encode(['68100']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[118, 1, 4, 'Cheras', json_encode(['56000','56100']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[119, 1, 4, 'Kuala Lumpur', json_encode(['50000','50050','50088','50100','50150','50200','50250','50300','50350','50400','50450','50460','50470','50480','50490','50500','50502','50504','50505','50506','50507','50508','50512','50514','50515','50519','50528','50529','50530','50532','50534','50536','50540','50544','50546','50548','50550','50551','50552','50554','50556','50560','50562','50564','50566','50568','50572','50576','50578','50580','50582','50586','50588','50590','50592','50594','50596','50598','50599','50600','50603','50604','50605','50608','50609','50610','50612','50614','50620','50621','50622','50623','50626','50632','50634','50636','50638','50640','50642','50644','50646','50648','50650','50652','50653','50656','50658','50660','50661','50662','50664','50666','50668','50670','50672','50673','50676','50677','50678','50680','50682','50684','50688','50694','50700','50702','50704','50706','50708','50710','50712','50714','50716','50718','50720','50722','50724','50726','50728','50730','50732','50734','50736','50738','50740','50742','50744','50746','50748','50750','50752','50754','50758','50760','50762','50764','50766','50768','50770','50772','50774','50776','50778','50780','50782','50784','50786','50788','50790','50792','50794','50796','50798','50800','50802','50804','50806','50808','50810','50812','50814','50816','50818','50901','50902','50903','50904','50906','50907','50908','50909','50910','50911','50912','50913','50914','50915','50916','50917','50918','50919','50920','50921','50922','50923','50924','50925','50926','50927','50928','50929','50930','50931','50932','50933','50934','50935','50936','50937','50938','50939','50940','50941','50942','50943','50944','50945','50946','50947','50948','50949','50950','50988','50989','50990','51000','51100','51200','51700','51990','52000','52100','52200','53000','53100','53200','53300','53700','53800','53990','54000','54100','54200','55000','55100','55200','55300','55700','55710','55720','55900','55902','55904','55906','55908','55910','55912','55914','55916','55918','55920','55922','55924','55926','55928','55930','55932','55934','55990','56000','56100','57000','57100','57700','57990','58000','58100','58200','58700','58990','59000','59100','59200','59700','59800','59990','60000']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[120, 1, 4, 'Setapak', json_encode(['53300']), 1, '2020-05-06 02:08:59', '2020-05-06 02:08:59'],
|
||||
[121, 1, 5, 'Labuan', json_encode(['87000','87010','87011','87012','87013','87014','87015','87016','87017','87018','87019','87020','87021','87022','87023','87024','87025','87026','87027','87028','87029','87030','87031','87032','87033']), 1, '2020-05-06 02:09:00', '2020-05-06 02:09:00'],
|
||||
[122, 1, 6, 'Air Keroh', json_encode(['75450']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[123, 1, 6, 'Alor Gajah', json_encode(['78000','78009']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[124, 1, 6, 'Asahan', json_encode(['77100','77109']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[125, 1, 6, 'Ayer Keroh', json_encode(['75450']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[126, 1, 6, 'Bemban', json_encode(['77200']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[127, 1, 6, 'Durian Tunggal', json_encode(['76100','76109']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[128, 1, 6, 'Jasin', json_encode(['77000','77007','77008','77009','77200']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[129, 1, 6, 'Kem Trendak', json_encode(['76200']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[130, 1, 6, 'Kuala Sungai Baru', json_encode(['78200']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[131, 1, 6, 'Lubok China', json_encode(['78100']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[132, 1, 6, 'Masjid Tanah', json_encode(['78300','78307','78309']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[133, 1, 6, 'Melaka', json_encode(['75000','75050','75100','75150','75200','75250','75260','75300','75350','75400','75450','75460','75500','75502','75503','75504','75505','75506','75508','75510','75512','75514','75516','75517','75518','75519','75532','75536','75538','75540','75542','75546','75550','75551','75552','75560','75564','75566','75570','75572','75576','75578','75582','75584','75586','75590','75592','75594','75596','75600','75604','75606','75608','75609','75610','75612','75618','75620','75622','75626','75628','75630','75632','75646','75648','75662','75670','75672','75673','75674','75676','75690','75700','75710','75720','75730','75740','75750','75760','75900','75902','75904','75906','75908','75910','75912','75914','75916','75918','75990','76400','76450']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[134, 1, 6, 'Merlimau', json_encode(['77300','77309']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[135, 1, 6, 'Selandar', json_encode(['77500']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[136, 1, 6, 'Sungai Rambai', json_encode(['77400','77409']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[137, 1, 6, 'Sungai Rambai\'', json_encode(['77400']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[138, 1, 6, 'Sungai Udang', json_encode(['76300']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[139, 1, 6, 'Tanjong Kling', json_encode(['76400','76409']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[140, 1, 7, 'Bahau', json_encode(['72100','72107','72109']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[141, 1, 7, 'Bandar Baru Enstek', json_encode(['71760']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[142, 1, 7, 'Bandar Seri Jempol', json_encode(['72120','72127','72129']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[143, 1, 7, 'Batu Kikir', json_encode(['72200','72207','72209']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[144, 1, 7, 'Gemas', json_encode(['73400','73409','73420','73480']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[145, 1, 7, 'Gemencheh', json_encode(['73200','73207','73209','73300','73309']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[146, 1, 7, 'Johol', json_encode(['73000','73100','73109']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[147, 1, 7, 'Kota', json_encode(['71350','71359']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[148, 1, 7, 'Kuala Klawang', json_encode(['71600','71609','71650','71659']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[149, 1, 7, 'Kuala Pilah', json_encode(['72000','72007','72009','72500','72507','72509']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[150, 1, 7, 'Labu', json_encode(['71900','71907','71909']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[151, 1, 7, 'Linggi', json_encode(['71150','71159']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[152, 1, 7, 'Mantin', json_encode(['71700','71707','71709','71750','71759']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[153, 1, 7, 'Nilai', json_encode(['71800','71807','71809']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[154, 1, 7, 'Port Dickson', json_encode(['71000','71007','71009','71010','71960']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[155, 1, 7, 'Pusat Bandar Palong', json_encode(['73430','73440','73450','73460','73470']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[156, 1, 7, 'Rantau', json_encode(['71010','71100','71109','71200','71209']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[157, 1, 7, 'Rembau', json_encode(['71300','71309','71400','71409']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[158, 1, 7, 'Rompin', json_encode(['73500','73507','73509']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[159, 1, 7, 'Seremban', json_encode(['70000','70100','70200','70300','70400','70450','70500','70502','70503','70504','70505','70506','70508','70512','70516','70517','70518','70532','70534','70536','70540','70546','70548','70550','70551','70558','70560','70564','70570','70572','70576','70578','70582','70586','70590','70592','70594','70596','70600','70604','70606','70608','70609','70610','70620','70626','70628','70632','70634','70644','70646','70648','70658','70664','70670','70672','70673','70674','70676','70690','70700','70710','70720','70730','70740','70750','70990','71450','71459','71770','71950']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[160, 1, 7, 'Si Rusa', json_encode(['71050','71059','71250','71259']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[161, 1, 7, 'Simpang Durian', json_encode(['72400','72409']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[162, 1, 7, 'Simpang Pertang', json_encode(['72300','72307','72309']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[163, 1, 7, 'Tampin', json_encode(['73000','73007','73009']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[164, 1, 7, 'Tanjong Ipoh', json_encode(['71500','71509','71550','71559']), 1, '2020-05-06 02:09:01', '2020-05-06 02:09:01'],
|
||||
[165, 1, 8, 'Balok', json_encode(['26080','26100','26150','26190']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[166, 1, 8, 'Bandar Bera', json_encode(['28200']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[167, 1, 8, 'Bandar Pusat Jengka', json_encode(['26400','26400','26410','26420','26430','26430','26440','26450','26460','26485','26490','26500']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[168, 1, 8, 'Bandar Tun Abdul Razak', json_encode(['26900']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[169, 1, 8, 'Benta', json_encode(['27300','27310']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[170, 1, 8, 'Bentong', json_encode(['28700','28707','28709','28730','28740','28750']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[171, 1, 8, 'Brinchang', json_encode(['39100']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[172, 1, 8, 'Bukit Fraser', json_encode(['49000']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[173, 1, 8, 'Bukit Goh', json_encode(['26050','26090']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[174, 1, 8, 'Chenor', json_encode(['28100']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[175, 1, 8, 'Chini', json_encode(['26690']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[176, 1, 8, 'Damak', json_encode(['27030']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[177, 1, 8, 'Dong', json_encode(['27400']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[178, 1, 8, 'Gambang', json_encode(['26300','26310','26320','26330','26340','26350','26360','26370']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[179, 1, 8, 'Genting Highlands', json_encode(['69000']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[180, 1, 8, 'Jaya Gading', json_encode(['26250']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[181, 1, 8, 'Jerantut', json_encode(['27000','27010','27020','27040','27050','27060','27070','27090','27150']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[182, 1, 8, 'Karak', json_encode(['28600','28610','28620']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[183, 1, 8, 'Kemayan', json_encode(['28340','28380']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[184, 1, 8, 'Kuala Krau', json_encode(['28050']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[185, 1, 8, 'Kuala Lipis', json_encode(['27200','27207','27209','27210']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[186, 1, 8, 'Kuala Rompin', json_encode(['26800','26810','26820']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[187, 1, 8, 'Kuantan', json_encode(['25000','25050','25100','25150','25200','25250','25300','25350','25500','25502','25503','25504','25505','25506','25508','25509','25512','25514','25516','25517','25518','25520','25524','25529','25532','25534','25536','25538','25540','25546','25548','25550','25551','25552','25556','25558','25560','25564','25570','25576','25578','25582','25584','25586','25590','25592','25594','25596','25598','25600','25604','25606','25608','25609','25610','25612','25614','25620','25622','25626','25628','25630','25632','25644','25646','25648','25656','25660','25661','25662','25670','25672','25673','25674','25676','25690','25700','25710','25720','25730','25740','25750','25990','26010','26040','26060','26070','26080','26100','26140','26170','26180']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[188, 1, 8, 'Lanchang', json_encode(['28500']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[189, 1, 8, 'Lurah Bilut', json_encode(['28800']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[190, 1, 8, 'Maran', json_encode(['26500']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[191, 1, 8, 'Mentakab', json_encode(['28400','28407','28409']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[192, 1, 8, 'Muadzam Shah', json_encode(['26700']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[193, 1, 8, 'Padang Tengku', json_encode(['27100']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[194, 1, 8, 'Pekan', json_encode(['26600','26607','26609','26610','26620','26630','26640','26650','26660','26680']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[195, 1, 8, 'Raub', json_encode(['27600','27607','27609','27610','27620','27630','27670']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[196, 1, 8, 'Ringlet', json_encode(['39200']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[197, 1, 8, 'Sega', json_encode(['27660']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[198, 1, 8, 'Sungai Koyan', json_encode(['27650']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[199, 1, 8, 'Sungai Lembing', json_encode(['26200']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[200, 1, 8, 'Sungai Ruan', json_encode(['27630']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[201, 1, 8, 'Tanah Rata', json_encode(['39000','39007','39009','39010']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[202, 1, 8, 'Temerloh', json_encode(['28000','28007','28009','28010','28020','28030','28040']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[203, 1, 8, 'Triang', json_encode(['28200','28300','28310','28320','28330']), 1, '2020-05-06 02:09:02', '2020-05-06 02:09:02'],
|
||||
[204, 1, 9, 'Ayer Tawar', json_encode(['32400']), 1, NULL, NULL],
|
||||
[205, 1, 9, 'Bagan Datoh', json_encode(['36100']), 1, NULL, NULL],
|
||||
[206, 1, 9, 'Bagan Serai', json_encode(['34300','34310']), 1, NULL, NULL],
|
||||
[207, 1, 9, 'Bandar Seri Iskandar', json_encode(['32600','32610']), 1, NULL, NULL],
|
||||
[208, 1, 9, 'Batu Gajah', json_encode(['31000','31007','31009']), 1, NULL, NULL],
|
||||
[209, 1, 9, 'Batu Kurau', json_encode(['34500','34510','34520']), 1, NULL, NULL],
|
||||
[210, 1, 9, 'Behrang Stesen', json_encode(['35950']), 1, NULL, NULL],
|
||||
[211, 1, 9, 'Bidor', json_encode(['35500']), 1, NULL, NULL],
|
||||
[212, 1, 9, 'Bota', json_encode(['32600']), 1, NULL, NULL],
|
||||
[213, 1, 9, 'Bruas', json_encode(['32700']), 1, NULL, NULL],
|
||||
[214, 1, 9, 'Changkat Jering', json_encode(['34850']), 1, NULL, NULL],
|
||||
[215, 1, 9, 'Changkat Keruing', json_encode(['32500']), 1, NULL, NULL],
|
||||
[216, 1, 9, 'Chemor', json_encode(['31200']), 1, NULL, NULL],
|
||||
[217, 1, 9, 'Chenderiang', json_encode(['35300']), 1, NULL, NULL],
|
||||
[218, 1, 9, 'Chenderong Balai', json_encode(['36600']), 1, NULL, NULL],
|
||||
[219, 1, 9, 'Chikus', json_encode(['36750']), 1, NULL, NULL],
|
||||
[220, 1, 9, 'Enggor', json_encode(['33600']), 1, NULL, NULL],
|
||||
[221, 1, 9, 'Gerik', json_encode(['33300','33310','33320']), 1, NULL, NULL],
|
||||
[222, 1, 9, 'Gopeng', json_encode(['31600','31610']), 1, NULL, NULL],
|
||||
[223, 1, 9, 'Hutan Melintang', json_encode(['36400']), 1, NULL, NULL],
|
||||
[224, 1, 9, 'Intan', json_encode(['33200']), 1, NULL, NULL],
|
||||
[225, 1, 9, 'Ipoh', json_encode(['30000','30010','30020','30100','30200','30250','30300','30350','30450','30500','30502','30503','30504','30505','30506','30508','30510','30512','30516','30517','30518','30519','30520','30524','30532','30534','30536','30540','30542','30546','30548','30550','30551','30552','30554','30556','30560','30564','30570','30576','30580','30582','30586','30590','30592','30594','30596','30600','30604','30606','30609','30610','30612','30614','30620','30621','30622','30626','30628','30630','30632','30634','30644','30646','30648','30656','30658','30660','30661','30662','30664','30668','30670','30673','30674','30676','30682','30690','30700','30710','30720','30730','30740','30750','30760','30770','30780','30790','30800','30810','30820','30830','30840','30900','30902','30904','30906','30908','30910','30912','30988','30990','31350','31400','31407','31409','31450','31500','31650']), 1, NULL, NULL],
|
||||
[226, 1, 9, 'Jeram', json_encode(['31850']), 1, NULL, NULL],
|
||||
[227, 1, 9, 'Kampar', json_encode(['31900','31907','31909','31910','31920']), 1, NULL, NULL],
|
||||
[228, 1, 9, 'Kampung Gajah', json_encode(['36800','36810']), 1, NULL, NULL],
|
||||
[229, 1, 9, 'Kampung Kepayang', json_encode(['31300']), 1, NULL, NULL],
|
||||
[230, 1, 9, 'Kamunting', json_encode(['34600']), 1, NULL, NULL],
|
||||
[231, 1, 9, 'Kuala Kangsar', json_encode(['33000','33007','33009','33010','33020','33030','33040']), 1, NULL, NULL],
|
||||
[232, 1, 9, 'Kuala Kurau', json_encode(['34350']), 1, NULL, NULL],
|
||||
[233, 1, 9, 'Kuala Sepetang', json_encode(['34650']), 1, NULL, NULL],
|
||||
[234, 1, 9, 'Lambor Kanan', json_encode(['32900']), 1, NULL, NULL],
|
||||
[235, 1, 9, 'Langkap', json_encode(['36700']), 1, NULL, NULL],
|
||||
[236, 1, 9, 'Lenggong', json_encode(['33400','33410','33420']), 1, NULL, NULL],
|
||||
[237, 1, 9, 'Lumut', json_encode(['32200']), 1, NULL, NULL],
|
||||
[238, 1, 9, 'Malim Nawar', json_encode(['31700']), 1, NULL, NULL],
|
||||
[239, 1, 9, 'Mambang Di Awan', json_encode(['31900','31920','31950']), 1, NULL, NULL],
|
||||
[240, 1, 9, 'Manong', json_encode(['33800']), 1, NULL, NULL],
|
||||
[241, 1, 9, 'Matang', json_encode(['34750']), 1, NULL, NULL],
|
||||
[242, 1, 9, 'Padang Rengas', json_encode(['33700']), 1, NULL, NULL],
|
||||
[243, 1, 9, 'Pangkor', json_encode(['32300']), 1, NULL, NULL],
|
||||
[244, 1, 9, 'Pantai Remis', json_encode(['34900']), 1, NULL, NULL],
|
||||
[245, 1, 9, 'Parit', json_encode(['32800']), 1, NULL, NULL],
|
||||
[246, 1, 9, 'Parit Buntar', json_encode(['34200']), 1, NULL, NULL],
|
||||
[247, 1, 9, 'Pengkalan Hulu', json_encode(['33100']), 1, NULL, NULL],
|
||||
[248, 1, 9, 'Pusing', json_encode(['31550','31560']), 1, NULL, NULL],
|
||||
[249, 1, 9, 'Rantau Panjang', json_encode(['34140']), 1, NULL, NULL],
|
||||
[250, 1, 9, 'Sauk', json_encode(['33500']), 1, NULL, NULL],
|
||||
[251, 1, 9, 'Selama', json_encode(['34100','34120','34130']), 1, NULL, NULL],
|
||||
[252, 1, 9, 'Selekoh', json_encode(['36200','36207','36209']), 1, NULL, NULL],
|
||||
[253, 1, 9, 'Seri Manjong', json_encode(['32040']), 1, NULL, NULL],
|
||||
[254, 1, 9, 'Seri Manjung', json_encode(['32040']), 1, NULL, NULL],
|
||||
[255, 1, 9, 'Simpang', json_encode(['34700']), 1, NULL, NULL],
|
||||
[256, 1, 9, 'Simpang Ampat Semanggol', json_encode(['34400']), 1, NULL, NULL],
|
||||
[257, 1, 9, 'Sitiawan', json_encode(['32000']), 1, NULL, NULL],
|
||||
[258, 1, 9, 'Slim River', json_encode(['35800','35820']), 1, NULL, NULL],
|
||||
[259, 1, 9, 'Sungai Siput', json_encode(['31050','31100']), 1, NULL, NULL],
|
||||
[260, 1, 9, 'Sungai Sumun', json_encode(['36300','36307','36309']), 1, NULL, NULL],
|
||||
[261, 1, 9, 'Sungkai', json_encode(['35600']), 1, NULL, NULL],
|
||||
[262, 1, 9, 'Taiping', json_encode(['34000','34007','34008','34009','34010','34020','34030']), 1, NULL, NULL],
|
||||
[263, 1, 9, 'Tanah Rata', json_encode(['39000']), 1, NULL, NULL],
|
||||
[264, 1, 9, 'Tanjong Malim', json_encode(['35900','35907','35909','35910']), 1, NULL, NULL],
|
||||
[265, 1, 9, 'Tanjong Piandang', json_encode(['34250']), 1, NULL, NULL],
|
||||
[266, 1, 9, 'Tanjong Rambutan', json_encode(['31250']), 1, NULL, NULL],
|
||||
[267, 1, 9, 'Tanjong Tualang', json_encode(['31800']), 1, NULL, NULL],
|
||||
[268, 1, 9, 'Tapah', json_encode(['35000','35007','35009']), 1, NULL, NULL],
|
||||
[269, 1, 9, 'Tapah Road', json_encode(['35400']), 1, NULL, NULL],
|
||||
[270, 1, 9, 'Teluk Intan', json_encode(['36000','36007','36008','36009','36010','36020','36030','36110']), 1, NULL, NULL],
|
||||
[271, 1, 9, 'Temoh', json_encode(['35350']), 1, NULL, NULL],
|
||||
[272, 1, 9, 'Tldm Lumut', json_encode(['32100']), 1, NULL, NULL],
|
||||
[273, 1, 9, 'Trolak', json_encode(['35700']), 1, NULL, NULL],
|
||||
[274, 1, 9, 'Trong', json_encode(['34800']), 1, NULL, NULL],
|
||||
[275, 1, 9, 'Tronoh', json_encode(['31750']), 1, NULL, NULL],
|
||||
[276, 1, 9, 'Ulu Bernam', json_encode(['36500']), 1, NULL, NULL],
|
||||
[277, 1, 9, 'Ulu Kinta', json_encode(['31150']), 1, NULL, NULL],
|
||||
[278, 1, 10, 'Arau', json_encode(['02600','02607','02609']), 1, '2020-05-06 02:09:03', '2020-05-06 02:09:03'],
|
||||
[279, 1, 10, 'Kaki Bukit', json_encode(['02200']), 1, '2020-05-06 02:09:03', '2020-05-06 02:09:03'],
|
||||
[280, 1, 10, 'Kangar', json_encode(['01000','01007','01009','01500','01502','01503','01504','01505','01506','01508','01512','01514','01516','01517','01518','01524','01529','01532','01538','01540','01546','01550','01551','01556','01560','01564','01570','01572','01576','01578','01582','01586','01590','01592','01594','01596','01598','01600','01604','01606','01608','01609','01610','01612','01614','01620','01622','01626','01628','01630','01632','01634','01644','01646','01648','01660','01664','01670','01672','01673','01674','01676','01680','01694','02400','02450','02500']), 1, '2020-05-06 02:09:03', '2020-05-06 02:09:03'],
|
||||
[281, 1, 10, 'Kuala Perlis', json_encode(['02000']), 1, '2020-05-06 02:09:03', '2020-05-06 02:09:03'],
|
||||
[282, 1, 10, 'Padang Besar', json_encode(['02100']), 1, '2020-05-06 02:09:03', '2020-05-06 02:09:03'],
|
||||
[283, 1, 10, 'Simpang Ampat', json_encode(['02700','02707','02709','02800']), 1, '2020-05-06 02:09:03', '2020-05-06 02:09:03'],
|
||||
[284, 1, 11, 'Ayer Itam', json_encode(['11500']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[285, 1, 11, 'Balik Pulau', json_encode(['11000','11010','11020']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[286, 1, 11, 'Batu Ferringhi', json_encode(['11100']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[287, 1, 11, 'Batu Maung', json_encode(['11900','11960']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[288, 1, 11, 'Bayan Lepas', json_encode(['11900','11910','11920','11950']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[289, 1, 11, 'Bukit Mertajam', json_encode(['14000','14007','14009','14020']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[290, 1, 11, 'Butterworth', json_encode(['12000','12100','12200','12300','12700','12710','12720','12990','13000','13009','13020','13050','13400','13409','13800']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[291, 1, 11, 'Gelugor', json_encode(['11700']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[292, 1, 11, 'Jelutong', json_encode(['11600','11609']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[293, 1, 11, 'Kepala Batas', json_encode(['13200','13210','13220']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[294, 1, 11, 'Kubang Semang', json_encode(['14400']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[295, 1, 11, 'Nibong Tebal', json_encode(['14300','14310','14320']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[296, 1, 11, 'Penaga', json_encode(['13100','13110']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[297, 1, 11, 'Penang Hill', json_encode(['11300']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[298, 1, 11, 'Perai', json_encode(['13600','13700']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[299, 1, 11, 'Permatang Pauh', json_encode(['13500']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[300, 1, 11, 'Pulau Pinang', json_encode(['10000','10050','10100','10150','10200','10250','10300','10350','10400','10450','10460','10470','10500','10502','10503','10504','10505','10506','10508','10512','10514','10516','10518','10524','10534','10538','10540','10542','10546','10550','10551','10552','10558','10560','10564','10566','10570','10576','10578','10582','10590','10592','10593','10594','10596','10600','10604','10609','10610','10612','10620','10622','10626','10628','10634','10646','10648','10660','10661','10662','10670','10672','10673','10674','10676','10690','10710','10720','10730','10740','10750','10760','10770','10780','10790','10800','10810','10820','10830','10840','10850','10910','10920','10990','11050','11060','11400','11409']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[301, 1, 11, 'Simpang Ampat', json_encode(['14100','14101','14110','14120','14200']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[302, 1, 11, 'Sungai Jawi', json_encode(['14200']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[303, 1, 11, 'Tanjong Bungah', json_encode(['11200']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[304, 1, 11, 'Tanjung Bungah', json_encode(['11200']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[305, 1, 11, 'Tasek Gelugor', json_encode(['13300','13310']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[306, 1, 11, 'Tasek Gelugur', json_encode(['13300']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[307, 1, 11, 'Usm Pulau Pinang', json_encode(['11800']), 1, '2020-05-06 02:09:04', '2020-05-06 02:09:04'],
|
||||
[308, 1, 12, 'Putrajaya', json_encode(['62000','62007','62050','62100','62150','62200','62250','62300','62502','62504','62505','62506','62510','62512','62514','62516','62517','62518','62519','62520','62522','62524','62526','62527','62530','62532','62536','62540','62542','62546','62550','62551','62570','62574','62576','62582','62584','62590','62592','62594','62596','62602','62604','62605','62606','62616','62618','62620','62623','62624','62628','62630','62632','62648','62652','62654','62662','62668','62670','62674','62675','62676','62677','62686','62692','62988']), 1, '2020-05-06 02:09:05', '2020-05-06 02:09:05'],
|
||||
[309, 1, 13, 'Beaufort', json_encode(['89800','89807','89808','89809']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[310, 1, 13, 'Beluran', json_encode(['90100','90107','90109']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[311, 1, 13, 'Beverly', json_encode(['88700','89260']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[312, 1, 13, 'Bongawan', json_encode(['89700','89707','89708','89709']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[313, 1, 13, 'Inanam', json_encode(['88857']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[314, 1, 13, 'Keningau', json_encode(['89000','89007','89008','89009']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[315, 1, 13, 'Kota Belud', json_encode(['89150','89157','89158','89159']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[316, 1, 13, 'Kota Kinabalu', json_encode(['88000','88100','88200','88300','88400','88450','88460','88500','88502','88504','88505','88506','88508','88510','88512','88514','88516','88518','88520','88526','88527','88532','88534','88538','88540','88546','88550','88551','88552','88554','88556','88558','88560','88562','88564','88566','88568','88570','88572','88576','88580','88582','88586','88590','88592','88594','88596','88598','88600','88602','88604','88606','88608','88609','88610','88612','88614','88617','88618','88620','88621','88622','88624','88626','88628','88630','88632','88634','88644','88646','88648','88656','88658','88660','88661','88662','88670','88672','88673','88675','88676','88680','88690','88757','88758','88759','88760','88761','88762','88763','88764','88765','88766','88767','88768','88769','88770','88771','88772','88773','88774','88775','88776','88777','88778','88779','88780','88781','88782','88783','88784','88785','88786','88787','88788','88789','88790','88800','88801','88802','88803','88804','88805','88806','88807','88808','88809','88810','88811','88812','88813','88814','88815','88816','88817','88818','88819','88820','88821','88822','88823','88824','88825','88826','88827','88828','88829','88830','88831','88832','88833','88834','88835','88836','88837','88838','88839','88840','88841','88842','88843','88844','88845','88846','88847','88848','88849','88850','88851','88852','88853','88854','88855','88860','88861','88862','88863','88865','88866','88867','88868','88869','88870','88871','88872','88873','88874','88875','88900','88901','88902','88903','88904','88905','88906','88988','88990','88991','88992','88993','88994','88995','88996','88997','88998','88999']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[317, 1, 13, 'Kota Kinabatangan', json_encode(['90200']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[318, 1, 13, 'Kota Marudu', json_encode(['89100','89107','89108','89109']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[319, 1, 13, 'Kuala Penyu', json_encode(['89740','89747','89748','89749']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[320, 1, 13, 'Kudat', json_encode(['89050','89057','89058','89059']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[321, 1, 13, 'Kunak', json_encode(['91200','91207','91209']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[322, 1, 13, 'Lahad Datu', json_encode(['91100','91109','91110','91111','91112','91113','91114','91115','91116','91117','91118','91119','91120','91121','91122','91123','91124','91125','91126','91127','91128','91150']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[323, 1, 13, 'Likas', json_encode(['88856']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[324, 1, 13, 'Membakut', json_encode(['89720','89727','89728','89729']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[325, 1, 13, 'Menumbok', json_encode(['89760','89767','89768','89769']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[326, 1, 13, 'Nabawan', json_encode(['89950','89957','89958','89959']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[327, 1, 13, 'Pamol', json_encode(['90400']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[328, 1, 13, 'Papar', json_encode(['89600','89607','89608','89609']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[329, 1, 13, 'Penampang', json_encode(['89500','89507','89508','89509']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[330, 1, 13, 'Putatan', json_encode(['88721','88722','88723','88724','88725']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[331, 1, 13, 'Ranau', json_encode(['89300','89307','89308','89309']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[332, 1, 13, 'Sandakan', json_encode(['90000','90009','90300','90307','90700','90701','90702','90703','90704','90705','90706','90707','90708','90709','90711','90712','90713','90714','90715','90716','90717','90718','90719','90720','90721','90722','90723','90724','90725','90726','90727','90728','90729','90730','90731','90732','90733','90734','90735','90736','90737','90738','90739','90740','90741']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[333, 1, 13, 'Semporna', json_encode(['91300','91307','91308','91309']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[334, 1, 13, 'Sipitang', json_encode(['89850','89857','89858','89859']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[335, 1, 13, 'Tambunan', json_encode(['89650','89657','89658','89659']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[336, 1, 13, 'Tamparuli', json_encode(['89250','89257','89258','89259']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[337, 1, 13, 'Tanjung Aru', json_encode(['88858']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[338, 1, 13, 'Tawau', json_encode(['91000','91007','91008','91009','91010','91011','91012','91013','91014','91015','91016','91017','91018','91019','91020','91021','91022','91023','91024','91025','91026','91027','91028','91029','91030','91031','91032','91033','91034','91035']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[339, 1, 13, 'Tenghilan', json_encode(['89260']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[340, 1, 13, 'Tenom', json_encode(['89900','89907','89908','89909']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[341, 1, 13, 'Tuaran', json_encode(['89200','89207','89208','89209']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[342, 1, 14, 'Asajaya', json_encode(['94600']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[343, 1, 14, 'Balingian', json_encode(['96350']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[344, 1, 14, 'Baram', json_encode(['98050','98057','98058','98059']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[345, 1, 14, 'Bau', json_encode(['94000','94007','94009']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[346, 1, 14, 'Bekenu', json_encode(['98150','98157','98159']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[347, 1, 14, 'Belaga', json_encode(['96900']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[348, 1, 14, 'Belawai', json_encode(['96150']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[349, 1, 14, 'Betong', json_encode(['95700','95707','95709']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[350, 1, 14, 'Bintangor', json_encode(['96500','96507','96508','96509']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[351, 1, 14, 'Bintulu', json_encode(['97000','97007','97008','97009','97010','97011','97012','97013','97014','97015','97300']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[352, 1, 14, 'Dalat', json_encode(['96300','96307','96309']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[353, 1, 14, 'Daro', json_encode(['96200']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[354, 1, 14, 'Debak', json_encode(['95500']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[355, 1, 14, 'Engkilili', json_encode(['95800']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[356, 1, 14, 'Julau', json_encode(['96600']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[357, 1, 14, 'Kabong', json_encode(['94650']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[358, 1, 14, 'Kanowit', json_encode(['96700','96707','96709']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[359, 1, 14, 'Kapit', json_encode(['96800','96807','96809']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[360, 1, 14, 'Kota Samarahan', json_encode(['94300']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[361, 1, 14, 'Kuching', json_encode(['93000','93010','93050','93100','93150','93200','93250','93300','93350','93400','93450','93500','93502','93503','93504','93505','93506','93507','93508','93514','93516','93517','93518','93519','93520','93527','93529','93532','93540','93550','93551','93552','93554','93556','93558','93560','93564','93566','93570','93572','93576','93578','93582','93586','93590','93592','93594','93596','93600','93604','93606','93608','93609','93610','93612','93614','93618','93619','93620','93626','93628','93632','93634','93648','93658','93660','93661','93662','93670','93672','93677','93690','93694','93700','93702','93704','93706','93708','93710','93712','93714','93716','93718','93720','93722','93724','93726','93728','93730','93732','93734','93736','93738','93740','93742','93744','93746','93748','93750','93752','93754','93756','93758','93760','93762','93764','93900','93902','93904','93906','93908','93910','93912','93914','93916','93990']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[362, 1, 14, 'Lawas', json_encode(['98850','98857','98859']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[363, 1, 14, 'Limbang', json_encode(['98700','98707','98708','98709']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[364, 1, 14, 'Lingga', json_encode(['94900']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[365, 1, 14, 'Long Lama', json_encode(['98300']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[366, 1, 14, 'Lubok Antu', json_encode(['95900']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[367, 1, 14, 'Lundu', json_encode(['94500','94507','94509']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[368, 1, 14, 'Lutong', json_encode(['98100','98107','98109']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[369, 1, 14, 'Matu', json_encode(['96250']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[370, 1, 14, 'Miri', json_encode(['98000','98007','98008','98009']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[371, 1, 14, 'Mukah', json_encode(['96400','96410']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[372, 1, 14, 'Nanga Medamit', json_encode(['98750']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[373, 1, 14, 'Niah', json_encode(['98200']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[374, 1, 14, 'Pusa', json_encode(['94950']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[375, 1, 14, 'Roban', json_encode(['95300']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[376, 1, 14, 'Saratok', json_encode(['95400','95407','95409']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[377, 1, 14, 'Sarikei', json_encode(['96100','96107','96108','96109']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[378, 1, 14, 'Sebauh', json_encode(['97100']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[379, 1, 14, 'Sebuyau', json_encode(['94850']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[380, 1, 14, 'Serian', json_encode(['94700','94707','94709','94750','94760']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[381, 1, 14, 'Sibu', json_encode(['96000','96007','96008','96009']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[382, 1, 14, 'Siburan', json_encode(['94200']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[383, 1, 14, 'Simunjan', json_encode(['94800','94807','94809']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[384, 1, 14, 'Song', json_encode(['96850']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[385, 1, 14, 'Spaoh', json_encode(['95600']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[386, 1, 14, 'Sri Aman', json_encode(['95000','95007','95008','95009']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[387, 1, 14, 'Sundar', json_encode(['98800']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[388, 1, 14, 'Tatau', json_encode(['97200']), 1, '2020-05-06 02:09:06', '2020-05-06 02:09:06'],
|
||||
[389, 1, 15, 'Ampang', json_encode(['68000']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[390, 1, 15, 'Bandar Baru Bangi', json_encode(['43650']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[391, 1, 15, 'Bandar Puncak Alam', json_encode(['42300']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[392, 1, 15, 'Bangi', json_encode(['43600']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[393, 1, 15, 'Banting', json_encode(['42700']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[394, 1, 15, 'Batang Berjuntai', json_encode(['45600','45607','45609','45620']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[395, 1, 15, 'Batang Kali', json_encode(['44300']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[396, 1, 15, 'Batangkali', json_encode(['44300']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[397, 1, 15, 'Batu Arang', json_encode(['48100']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[398, 1, 15, 'Batu Caves', json_encode(['68100']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[399, 1, 15, 'Beranang', json_encode(['43700']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[400, 1, 15, 'Bukit Rotan', json_encode(['45700']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[401, 1, 15, 'Cheras', json_encode(['43200','43207','56000','56100']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[402, 1, 15, 'Cyberjaya', json_encode(['63000','63100','63200','63300']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[403, 1, 15, 'Dengkil', json_encode(['43800','43807']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[404, 1, 15, 'Gombak', json_encode(['53100']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[405, 1, 15, 'Hulu Langat', json_encode(['43100']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[406, 1, 15, 'Jenjarom', json_encode(['42600','42610']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[407, 1, 15, 'Jeram', json_encode(['45800']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[408, 1, 15, 'Jerantut', json_encode(['27000']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[409, 1, 15, 'Kajang', json_encode(['43000','43007','43009','43558']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[410, 1, 15, 'Kapar', json_encode(['42200']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[411, 1, 15, 'Kerling', json_encode(['44100']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[412, 1, 15, 'Klang', json_encode(['41000','41050','41100','41150','41200','41250','41300','41400','41506','41560','41586','41672','41700','41710','41720','41900','41902','41904','41906','41908','41910','41912','41914','41916','41918','41990','42100']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[413, 1, 15, 'Klia', json_encode(['64000']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[414, 1, 15, 'Kuala Kubu Baru', json_encode(['44000','44010','44020','44110']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[415, 1, 15, 'Kuala Selangor', json_encode(['45000']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[416, 1, 15, 'Kuantan', json_encode(['26060']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[417, 1, 15, 'Pandan', json_encode(['55100']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[418, 1, 15, 'Pelabuhan Klang', json_encode(['42000','42009','42920']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[419, 1, 15, 'Petaling Jaya', json_encode(['46000','46050','46100','46150','46200','46300','46350','46400','46506','46547','46549','46551','46564','46582','46598','46662','46667','46668','46672','46675','46700','46710','46720','46730','46740','46750','46760','46770','46780','46781','46782','46783','46784','46785','46786','46787','46788','46789','46790','46791','46792','46793','46794','46795','46796','46797','46798','46799','46800','46801','46802','46803','46804','46805','46806','46860','46870','46960','46962','46964','46966','46968','46970','46972','46974','46976','46978','47300','47301','47307','47308','47400','47410','47500','47800','47810','47820','47830']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[420, 1, 15, 'Puchong', json_encode(['47100','47110','47120','47130','47140','47150','47160','47170','47180','47190']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[421, 1, 15, 'Pulau Carey', json_encode(['42960']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[422, 1, 15, 'Pulau Indah', json_encode(['42920']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[423, 1, 15, 'Pulau Ketam', json_encode(['42940']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[424, 1, 15, 'Rasa', json_encode(['44200']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[425, 1, 15, 'Rawang', json_encode(['48000','48010','48020','48050','48100','48300']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[426, 1, 15, 'Sabak Bernam', json_encode(['45200','45207','45209']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[427, 1, 15, 'Sekinchan', json_encode(['45400']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[428, 1, 15, 'Semenyih', json_encode(['43500']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[429, 1, 15, 'Sepang', json_encode(['43900']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[430, 1, 15, 'Serdang', json_encode(['43400']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[431, 1, 15, 'Serendah', json_encode(['48200']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[432, 1, 15, 'Seri Kembangan', json_encode(['43300']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[433, 1, 15, 'Shah Alam', json_encode(['40000','40100','40150','40160','40170','40200','40300','40400','40450','40460','40470','40500','40502','40503','40505','40512','40517','40520','40529','40542','40548','40550','40551','40560','40564','40570','40572','40576','40578','40582','40590','40592','40594','40596','40598','40604','40607','40608','40610','40612','40620','40622','40626','40632','40646','40648','40660','40664','40670','40672','40673','40674','40675','40676','40680','40690','40700','40702','40704','40706','40708','40710','40712','40714','40716','40718','40720','40722','40724','40726','40728','40730','40732','40800','40802','40804','40806','40808','40810','40990']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[434, 1, 15, 'Subang Airport', json_encode(['47200']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[435, 1, 15, 'Subang Jaya', json_encode(['47500','47507','47600','47610','47620','47630','47640','47650']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[436, 1, 15, 'Sungai Ayer Tawar', json_encode(['45100']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[437, 1, 15, 'Sungai Besar', json_encode(['45300']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[438, 1, 15, 'Sungai Buloh', json_encode(['47000','47100']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[439, 1, 15, 'Sungai Pelek', json_encode(['43950']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[440, 1, 15, 'Tanjong Karang', json_encode(['45500']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[441, 1, 15, 'Tanjong Sepat', json_encode(['42800']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07'],
|
||||
[442, 1, 15, 'Telok Panglima Garang', json_encode(['42425','42500','42507','42509']), 1, '2020-05-06 02:09:07', '2020-05-06 02:09:07']
|
||||
];
|
||||
|
||||
|
||||
$district_list = [];
|
||||
|
||||
foreach ($district_seeder_list as $key => $row) {
|
||||
$district_list[] = [
|
||||
'id' => $row[0],
|
||||
'country_id' => $row[1],
|
||||
'state_id' => $row[2],
|
||||
'name' => $row[3],
|
||||
'postcode' => $row[4],
|
||||
'status' => $row[5],
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
];
|
||||
}
|
||||
|
||||
DB::table('districts')->insert($district_list);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class StatesTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('states')->insert([
|
||||
[
|
||||
'id' => 1,
|
||||
'country_id' => 1,
|
||||
'name' => 'Johor',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 2,
|
||||
'country_id' => 1,
|
||||
'name' => 'Kedah',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 3,
|
||||
'country_id' => 1,
|
||||
'name' => 'Kelantan',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 4,
|
||||
'country_id' => 1,
|
||||
'name' => 'Kuala Lumpur',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 5,
|
||||
'country_id' => 1,
|
||||
'name' => 'Labuan',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 6,
|
||||
'country_id' => 1,
|
||||
'name' => 'Melaka',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 7,
|
||||
'country_id' => 1,
|
||||
'name' => 'Negeri Sembilan',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 8,
|
||||
'country_id' => 1,
|
||||
'name' => 'Pahang',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 9,
|
||||
'country_id' => 1,
|
||||
'name' => 'Perak',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 10,
|
||||
'country_id' => 1,
|
||||
'name' => 'Perlis',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 11,
|
||||
'country_id' => 1,
|
||||
'name' => 'Pulau Pinang',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 12,
|
||||
'country_id' => 1,
|
||||
'name' => 'Putrajaya',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 13,
|
||||
'country_id' => 1,
|
||||
'name' => 'Sabah',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 14,
|
||||
'country_id' => 1,
|
||||
'name' => 'Sarawak',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 15,
|
||||
'country_id' => 1,
|
||||
'name' => 'Selangor',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
],
|
||||
[
|
||||
'id' => 16,
|
||||
'country_id' => 1,
|
||||
'name' => 'Terengganu',
|
||||
'status' => 1,
|
||||
'created_at' => date('Y-m-d H:i:s'),
|
||||
'updated_at' => date('Y-m-d H:i:s'),
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user