PHP code example of geccomedia / weclapp
1. Go to this page and download the library: Download geccomedia/weclapp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
geccomedia / weclapp example snippets
use Geccomedia\Weclapp\Models\Customer;
class YourClass
{
public function yourFunction()
{
$customer = Customer::where('company', 'Your Company Name')
->firstOrFail();
$customer = new \Geccomedia\Weclapp\Models\Customer();
\Geccomedia\Weclapp\Models\Customer::unguard();
$customer->fill(['partyType' => 'ORGANIZATION']);
\Geccomedia\Weclapp\Models\Customer::reguard();