Baca ini dalam bahasa: Indonesia
This is my package laravel-rajaongkir
Installation
You can install the package via composer:
composer require kodepintar/laravel-rajaongkir
You can publish and run the migrations with:
php artisan vendor:publish --provider="Kodepintar\LaravelRajaongkir\LaravelRajaongkirServiceProvider" --tag="laravel-rajaongkir-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --provider="Kodepintar\LaravelRajaongkir\LaravelRajaongkirServiceProvider" --tag="laravel-rajaongkir-config"
This is the contents of the published config file:
return [
'API_KEY' => env('RAJAONGKIR_KEY', 'somerandomstring'),
'ACCOUNT_TYPE' => env('RAJAONGKIR_TYPE', 'starter')
];
Usage
use Kodepintar\LaravelRajaongkir\LaravelRajaongkir as Ongkir;
$data = new Ongkir();
$data = $data->getProvince();
return $data;
Credits
this repo used template from spatie
License
The MIT License (MIT). Please see License File for more information.