Skip to main content

weclapp API

https://wiki.bluesafety.com/books/weclapp/chapter/development https://www.weclapp.com/api/ https://github.com/geccomedia/weclapp

website # root directory of your site
├── app
│ ├── Http
│ │ ├── Controllers
│ │ │ ├── Weclapp
│ │ │ │ ├── TaskController.php
│ │ │ │ └── ...
│ │ │ ├── WeclappController.php
│ │ │ └── ...
│ │ └── ...
│ └── ...
├── composer.json
└── ...

2.1. Examples

use App\Models\Weclapp\Customer;

$customer = Customer::where('company', 'Artur Zeier')->firstOrFail();

2.1.4. Mass assignments

$customer = new \App\Models\Weclapp\Customer();
\App\Models\Weclapp\Customer::unguard();
$customer->fill(['partyType' => 'ORGANIZATION']);
\App\Models\Weclapp\Customer::reguard();

2.1.5. Sub Entities

$comments = Comment::whereEntity('customer', 123)->orderByDesc()->get();

2.1.6. Logging

use App\Http\Controllers\Weclapp\Connection;
app(Connection::class)->enableQueryLog();
\App\Models\Weclapp\Customer::create(['name' => 'Test'])
app(Connection::class)->getQueryLog();