PHPackages                             geccomedia/weclapp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. geccomedia/weclapp

ActiveLibrary[API Development](/categories/api)

geccomedia/weclapp
==================

Weclapp api via laravel eloquent

v7.4.0(yesterday)72.2k↓72.4%4[2 PRs](https://github.com/geccomedia/weclapp/pulls)MITPHPPHP &gt;=8.2CI passing

Since Sep 20Pushed 4d ago4 watchersCompare

[ Source](https://github.com/geccomedia/weclapp)[ Packagist](https://packagist.org/packages/geccomedia/weclapp)[ RSS](/packages/geccomedia-weclapp/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (10)Versions (31)Used By (0)

Laravel Weclapp
===============

[](#laravel-weclapp)

[![Latest Stable Version](https://camo.githubusercontent.com/0a36cb106d13b99c32e0105a29fb9421b0e45b62ba5f203ac33b037a3434f82f/68747470733a2f2f706f7365722e707567782e6f72672f676563636f6d656469612f7765636c6170702f762f737461626c65)](https://packagist.org/packages/geccomedia/weclapp) [![Total Downloads](https://camo.githubusercontent.com/4dd27df1238c35b0f66c5b09189bfe1f739a7c9f6b61b8c709d6a6389ed4a36c/68747470733a2f2f706f7365722e707567782e6f72672f676563636f6d656469612f7765636c6170702f646f776e6c6f616473)](https://packagist.org/packages/geccomedia/weclapp) [![License](https://camo.githubusercontent.com/6343fec20148e9591ba93ff98a57175710dec5fad3eb449639fcae588a1ebeb0/68747470733a2f2f706f7365722e707567782e6f72672f676563636f6d656469612f7765636c6170702f6c6963656e7365)](https://packagist.org/packages/geccomedia/weclapp) [![Unit Coverage](https://camo.githubusercontent.com/1c738fd07914a37040648ff5ce7f1346ff7abb8771383c2bfffb4a4789c1a7b9/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f676973742e67697468756275736572636f6e74656e742e636f6d2f54616d7261656c2f31353939326139336565313235323637393835366663333236383738373361372f7261772f7765636c6170702d756e69742d636f7665726167652e6a736f6e)](https://github.com/geccomedia/weclapp/actions/workflows/php.yml) [![Swagger Coverage](https://camo.githubusercontent.com/a8dd2e89e49af9a9b1c01a43f1198d8f62962ec58ed089f2fa751ae6b73db188/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f676973742e67697468756275736572636f6e74656e742e636f6d2f54616d7261656c2f31353939326139336565313235323637393835366663333236383738373361372f7261772f7765636c6170702d737761676765722d636f7665726167652e6a736f6e)](https://github.com/geccomedia/weclapp/actions/workflows/swagger-coverage.yml)

This repo implements most of the Laravel Eloquent Model for the Weclapp web api.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)
- [Available Models](#available-models)
- [Custom Models](#custom-models)
- [Mass Assignments](#mass-assignments)
- [Relations](#relations)
    - [Eager loading](#eager-loading-recommended--single-batched-request)
    - [Lazy loading](#lazy-loading-n1)
    - [Inverse relations](#inverse-relations-hasmany)
- [Additional Properties](#additional-properties)
- [Custom Actions](#custom-actions)
    - [Collection-level actions](#collection-level-actions)
    - [Instance-level actions](#instance-level-actions)
- [Read-only Models](#read-only-models)
- [Embedded Sub-Objects](#embedded-sub-objects)
- [Sub Entities](#sub-entities)
- [Logging](#logging)
- [Party-type Models](#party-type-models)
    - [leadStatus values](#leadstatus-values)
- [Boolean Filters](#boolean-filters)
- [System &amp; Job Utility APIs](#system--job-utility-apis)
    - [SystemApi](#systemapi)
    - [JobApi](#jobapi)
- [License &amp; Copyright](#license--copyright)

Installation
------------

[](#installation)

Require this package with Composer

```
composer require geccomedia/weclapp

```

Add the variables to your `.env`:

```
WECLAPP_BASE_URL=https://your-subdomain.weclapp.com/webapp/api/v1/
WECLAPP_API_KEY=your-key

```

Usage
-----

[](#usage)

Use existing models from the `Geccomedia\Weclapp\Models` namespace.

Most Eloquent methods are implemented within the limitations of the web API.

```
