- Exposes all needed features to publish an ad on Hexon integrator.
Register a new provider in config.php
'providers' => [
Bonecrusher\Hexon\HexonServiceProvider::class,
],
and after run artisan command
php artisan hexon:publish
Check into folder /config the file hexon.php and change whatever config var. You can also use your .env file to set configs.
- Example 1: Get all accounts
Hexon::accounts()->get();
- Example 2: Get just one account
Hexon::accounts('marktplaats:123456')->get();
- Example 3: Get just one account with its related sites
Hexon::accounts('marktplaats:123456')->site()->get();
- Example 4: Get the make '11' with the related makewarrantylabels '535'
Hexon::makes(11)->makewarrantylabels(535)->get();
- Example 5: Get account resource definition (you can make it for any resource)
Hexon::accounts()->definition();
- Example 6: Get just one account and select only 'site_code' and 'client_id' fields
Hexon::accounts('marktplaats:123456')->select(['site_code', 'client_id'])->get()
- Post: Create new contact person
// $payload array => request
Hexon::contactpersons()->create($payload);
- Put: Update contact person
// $id int => the contact person id to update
// $payload array => request
Hexon::contactpersons($id)->update($payload);
- Delete: Delete contact person
// $id int => the contact person id to delete
Hexon::contactpersons($id)->delete();